summaryrefslogtreecommitdiff
path: root/benchmark/doc/openapi.json
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/doc/openapi.json')
-rw-r--r--benchmark/doc/openapi.json183
1 files changed, 183 insertions, 0 deletions
diff --git a/benchmark/doc/openapi.json b/benchmark/doc/openapi.json
new file mode 100644
index 0000000..9eb501d
--- /dev/null
+++ b/benchmark/doc/openapi.json
@@ -0,0 +1,183 @@
+{
+ "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"
+ }
+ }
+ }
+ }
+ }
+} \ No newline at end of file