September 2018
Intermediate to advanced
386 pages
11h 17m
English
After deploying the API on a stage, there is the option to export the documentation from the console.
The following code block shows the documentation of the Greeter API. We will use this as a boilerplate to create the LetsPoll APIs in Chapter 4, Developing Your Serverless Application:
{ "swagger": "2.0", "info": { "version": "2018-07-29T11:09:39Z", "title": "Greeter API" }, "schemes": [ "https" ], "paths": { "/greeter": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "in": "body", "name": "GreetingInput", "required": true, "schema": { "$ref": "#/definitions/GreetingInput" } } ], "responses": { "200": { "description": "200 response", ...Read now
Unlock full access