diff --git a/app/swagger/merms_swagger.json b/app/swagger/merms_swagger.json index e809b3a..0b8b752 100644 --- a/app/swagger/merms_swagger.json +++ b/app/swagger/merms_swagger.json @@ -81,6 +81,12 @@ }, "/panel/RegisterVerify": { "$ref": "swagger/paths/Register.json" + }, + "/panel/Account": { + "$ref": "swagger/paths/Account.json" + }, + "/panel/Products": { + "$ref": "swagger/paths/Register.json" } }, "components": { diff --git a/app/swagger/paths/Account.json b/app/swagger/paths/Account.json new file mode 100644 index 0000000..787535e --- /dev/null +++ b/app/swagger/paths/Account.json @@ -0,0 +1,57 @@ +{ + "get": { + "tags": [ + "Account" + ], + "summary": "User Account + Profile ", + "description": "Initiate Login Request", + "operationId": "startLogin", + "requestBody": { + "description": "Post JSON to conduct login request", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/UserRequest.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/UserRequest.json" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "../schemas/UserRequest.json" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/LoginResponse.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/LoginResponse.json" + } + } + } + }, + "400": { + "description": "Invalid request" + }, + "422": { + "description": "Validation exception" + }, + "500": { + "description": "Internal server error" + } + } + } +} \ No newline at end of file diff --git a/app/swagger/paths/Products.json b/app/swagger/paths/Products.json new file mode 100644 index 0000000..02b8135 --- /dev/null +++ b/app/swagger/paths/Products.json @@ -0,0 +1,57 @@ +{ + "get": { + "tags": [ + "Account" + ], + "summary": "User Products Request ", + "description": "Initiate Login Request", + "operationId": "startLogin", + "requestBody": { + "description": "Post JSON to conduct login request", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/UserRequest.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/UserRequest.json" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "../schemas/UserRequest.json" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/LoginResponse.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/LoginResponse.json" + } + } + } + }, + "400": { + "description": "Invalid request" + }, + "422": { + "description": "Validation exception" + }, + "500": { + "description": "Internal server error" + } + } + } +} \ No newline at end of file diff --git a/app/swagger/schemas/UserRequest.json b/app/swagger/schemas/UserRequest.json new file mode 100644 index 0000000..47fee13 --- /dev/null +++ b/app/swagger/schemas/UserRequest.json @@ -0,0 +1,16 @@ +{ + "type": "object", + "properties": { + "token": { + "type": "string", + "example": "token" + }, + "uid": { + "type": "string", + "example": "uid" + } + }, + "xml": { + "name": "LoginRequest" + } +} \ No newline at end of file