@@ -11,6 +11,10 @@ export class AppController {
11
11
* create a Cat
12
12
*
13
13
* @remarks Creating a test cat
14
+ *
15
+ * @throws {500} Something is wrong.
16
+ * @throws {400} Bad Request.
17
+ * @throws {400} Missing parameters.
14
18
*
15
19
* @returns {Promise<Cat>}
16
20
* @memberof AppController
@@ -75,6 +79,10 @@ let AppController = exports.AppController = class AppController {
75
79
*
76
80
* @remarks Creating a test cat
77
81
*
82
+ * @throws {500} Something is wrong.
83
+ * @throws {400} Bad Request.
84
+ * @throws {400} Missing parameters.
85
+ *
78
86
* @returns {Promise<Cat>}
79
87
* @memberof AppController
80
88
*/
@@ -109,6 +117,9 @@ let AppController = exports.AppController = class AppController {
109
117
};
110
118
__decorate([
111
119
openapi.ApiOperation({ summary: \"create a Cat\", description: \"Creating a test cat\" }),
120
+ openapi.ApiResponse({ status: 500, description: "Something is wrong." }),
121
+ openapi.ApiResponse({ status: 400, description: "Bad Request." }),
122
+ openapi.ApiResponse({ status: 400, description: "Missing parameters." }),
112
123
(0, common_1.Post)(),
113
124
openapi.ApiResponse({ status: 201, type: Cat })
114
125
], AppController.prototype, \"create\", null);
0 commit comments