account swagger

This commit is contained in:
CHIEFSOFT\ameye
2025-06-23 12:04:58 -04:00
parent 35335ff3fb
commit 02dfc93d3b
4 changed files with 136 additions and 0 deletions
+6
View File
@@ -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": {
+57
View File
@@ -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"
}
}
}
}
+57
View File
@@ -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"
}
}
}
}
+16
View File
@@ -0,0 +1,16 @@
{
"type": "object",
"properties": {
"token": {
"type": "string",
"example": "token"
},
"uid": {
"type": "string",
"example": "uid"
}
},
"xml": {
"name": "LoginRequest"
}
}