From 8809f5957a65f0588c33177e49ad84f9d94e6b35 Mon Sep 17 00:00:00 2001 From: Miodec Date: Fri, 4 Mar 2022 15:19:54 +0100 Subject: [PATCH] added index, psas, configs, presets --- backend/swagger.json | 195 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 195 insertions(+) diff --git a/backend/swagger.json b/backend/swagger.json index d79d71daf..8dab841e0 100644 --- a/backend/swagger.json +++ b/backend/swagger.json @@ -22,9 +22,57 @@ { "name": "tags", "description": "" + }, + { + "name": "psas", + "description": "" + }, + { + "name": "presets", + "description": "" + }, + { + "name": "configs", + "description": "" + }, + { + "name": "index", + "description": "" } ], "paths": { + "/": { + "get": { + "tags": ["index"], + "responses": { + "default": { + "description": "", + "schema": { + "type": "object", + "properties": { + "uptime": { + "type": "number" + }, + "requestsProcessed": { + "type": "number" + } + } + } + } + } + }, + "delete": { + "tags": ["users"], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/Response" + } + } + } + } + }, "/users": { "get": { "tags": ["users"], @@ -370,6 +418,153 @@ } } } + }, + "/psas": { + "get": { + "tags": ["psas"], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/Response" + } + } + } + } + }, + "/presets": { + "get": { + "tags": ["presets"], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/Response" + } + } + } + }, + "post": { + "tags": ["presets"], + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "config": { + "type": "object" + } + } + } + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/Response" + } + } + } + }, + "patch": { + "tags": ["presets"], + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "config": { + "type": "object" + } + } + } + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/Response" + } + } + } + } + }, + "/presets/{presetId}": { + "delete": { + "tags": ["presets"], + "parameters": [ + { + "in": "path", + "name": "presetId", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/Response" + } + } + } + } + }, + "/configs": { + "get": { + "tags": ["configs"], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/Response" + } + } + } + }, + "patch": { + "tags": ["configs"], + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "config": { + "type": "object" + } + } + } + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/Response" + } + } + } + } } }, "definitions": {