FIX: Uploading File With Unkown Catagory Id
Build, Push and Deploy CMS / build-push-deploy (push) Successful in 2m22s

This commit is contained in:
FahdShalhoub
2026-08-27 18:43:04 +03:00
parent ae129c8f61
commit b68086eea4
5 changed files with 51 additions and 9 deletions
+7 -1
View File
@@ -78,8 +78,14 @@ const docTemplate = `{
"$ref": "#/definitions/api.ProblemDetails"
}
},
"404": {
"description": "categoryIds referenced a category that does not exist",
"schema": {
"$ref": "#/definitions/api.ProblemDetails"
}
},
"422": {
"description": "title was empty, key was missing or not a key issued by this API, or categoryIds was empty or contained an id that does not exist",
"description": "title was empty, key was missing or not a key issued by this API, or categoryIds was empty",
"schema": {
"$ref": "#/definitions/api.ProblemDetails"
}
+7 -1
View File
@@ -71,8 +71,14 @@
"$ref": "#/definitions/api.ProblemDetails"
}
},
"404": {
"description": "categoryIds referenced a category that does not exist",
"schema": {
"$ref": "#/definitions/api.ProblemDetails"
}
},
"422": {
"description": "title was empty, key was missing or not a key issued by this API, or categoryIds was empty or contained an id that does not exist",
"description": "title was empty, key was missing or not a key issued by this API, or categoryIds was empty",
"schema": {
"$ref": "#/definitions/api.ProblemDetails"
}
+5 -1
View File
@@ -186,9 +186,13 @@ paths:
description: Request body was not valid JSON
schema:
$ref: '#/definitions/api.ProblemDetails'
"404":
description: categoryIds referenced a category that does not exist
schema:
$ref: '#/definitions/api.ProblemDetails'
"422":
description: title was empty, key was missing or not a key issued by this
API, or categoryIds was empty or contained an id that does not exist
API, or categoryIds was empty
schema:
$ref: '#/definitions/api.ProblemDetails'
"500":