@@ -11,6 +11,10 @@ export class AppController {
1111 * create a Cat
1212 *
1313 * @remarks Creating a test cat
14+ *
15+ * @throws {500} Something is wrong.
16+ * @throws {400} Bad Request.
17+ * @throws {400} Missing parameters.
1418 *
1519 * @returns {Promise<Cat>}
1620 * @memberof AppController
@@ -75,6 +79,10 @@ let AppController = exports.AppController = class AppController {
7579 *
7680 * @remarks Creating a test cat
7781 *
82+ * @throws {500} Something is wrong.
83+ * @throws {400} Bad Request.
84+ * @throws {400} Missing parameters.
85+ *
7886 * @returns {Promise<Cat>}
7987 * @memberof AppController
8088 */
@@ -109,6 +117,9 @@ let AppController = exports.AppController = class AppController {
109117};
110118__decorate([
111119 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." }),
112123 (0, common_1.Post)(),
113124 openapi.ApiResponse({ status: 201, type: Cat })
114125], AppController.prototype, \"create\", null);
0 commit comments