add text waste route
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-11-28 06:43:05 +07:00
parent 26ca649e8e
commit 0ed38b7cc0
15 changed files with 744 additions and 430 deletions
+53 -44
View File
@@ -391,6 +391,7 @@
},
"/login": {
"post": {
"summary": "login",
"operationId": "SmmCore_Login",
"responses": {
"200": {
@@ -480,39 +481,6 @@
]
}
},
"/users": {
"post": {
"summary": "users",
"operationId": "SmmCore_AddUser",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/smm_coreUser"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/smm_coreAddUserReq"
}
}
],
"tags": [
"SmmCore"
]
}
},
"/wastes": {
"post": {
"summary": "wastes",
@@ -546,6 +514,38 @@
]
}
},
"/wastes/text": {
"post": {
"operationId": "SmmCore_AddWasteByText",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/smm_coreWaste"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/smm_coreAddWasteTextReq"
}
}
],
"tags": [
"SmmCore"
]
}
},
"/wastes/{id}": {
"delete": {
"operationId": "SmmCore_DeleteWaste",
@@ -667,17 +667,6 @@
}
}
},
"smm_coreAddUserReq": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"password": {
"type": "string"
}
}
},
"smm_coreAddWasteReq": {
"type": "object",
"properties": {
@@ -695,6 +684,26 @@
"categoryId": {
"type": "integer",
"format": "int32"
},
"budgetId": {
"type": "integer",
"format": "int32"
}
}
},
"smm_coreAddWasteTextReq": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"categoryId": {
"type": "integer",
"format": "int32"
},
"budgetId": {
"type": "integer",
"format": "int32"
}
}
},