using swagger with serverless python code example

Example: using swagger with serverless python

{  "swagger": "2.0",  "info": {    [...]  },  "schemes": ["https"],  "consumes": ["application/json"],  "produces": ["application/json"],  "paths": {    "/user": {      "get": {        "responses": {          "200": {            "description": "users retrieved",            "schema": {              "type": "array",              "items": {                "$ref": "#/definitions/User"              }            }          }        }      }    }  },  "definitions": {    "User": {      "type": "object",      "properties": {        "uid": {          "type": "string"        },        "email": {          "type": "string"        },        "phone": {          "type": "string"        }      },      "required": ["uid", "email", "phone"]    }  }}

Tags:

Misc Example