Building Microservices with Python , Part I
Sergio Sola
78025

Hello sergio Solo ,

I got some error and i corrected code and now i am not getting any error .

  1. end point : i changes end point /Items/ to /api_items/ ,

Issue :

Executing endpoint (localhost:8000/v1.0/api_items/ , it will return a json like this:
{
 “0”: {
 “name”: “First item”
 }
}

(it’s working fine)

but other urls like :

http://localhost:9090/v1.0/swagger.json

Give output in this format :

{
"basePath": "/v1.0",
"definitions": {
"Item": {
"properties": {
"id": {
"format": "int64",
"type": "integer"
},
"name": {
"type": "string"
}
},
"type": "object"
}
},
"info": {
"title": "My first API",
"version": "1.0"
},
"paths": {
"/api_items/": {
"get": {
"responses": {
"200": {
"description": "Fetch a list of items",
"schema": {
"items": {
"$ref": "#/definitions/Item"
},
"type": "array"
}
}
}
}
}
},
"swagger": "2.0"
}

http://localhost:9090/ui : not working at my end

I am getting following error :

{
"detail": "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.