{ "swagger": "2.0", "info": { "version": "1.0.0", "title": "REST API", "description": "" }, "host": "localhost:3000", "basePath": "/", "schemes": [ "http" ], "paths": { "/": { "get": { "description": "", "responses": { "200": { "description": "OK" } } } }, "/api/points": { "get": { "description": "", "parameters": [ { "name": "type", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" } } }, "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "x": { "example": "any" }, "y": { "example": "any" }, "type": { "example": "any" }, "name": { "example": "any" }, "picture": { "example": "any" } } } } ], "responses": { "201": { "description": "Created" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/api/points/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/api/points/{id}/reviews": { "post": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "grade": { "example": "any" }, "comment": { "example": "any" }, "pictures": { "example": "any" } } } } ], "responses": { "201": { "description": "Created" }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/api/upload": { "post": { "description": "", "responses": { "201": { "description": "Created" }, "400": { "description": "Bad Request" } } } } } }