diff --git a/packages/medusa/src/api/routes/admin/currencies/list-currencies.ts b/packages/medusa/src/api/routes/admin/currencies/list-currencies.ts index 32682192c1..a39c4820ef 100644 --- a/packages/medusa/src/api/routes/admin/currencies/list-currencies.ts +++ b/packages/medusa/src/api/routes/admin/currencies/list-currencies.ts @@ -49,12 +49,24 @@ import { FeatureFlagDecorators } from "../../../../utils/feature-flag-decorators * tags: * - Currencies * responses: - * 200: + * "200": * description: OK * content: * application/json: * schema: * $ref: "#/components/schemas/AdminCurrenciesListRes" + * "400": + * $ref: "#/components/responses/400_error" + * "401": + * $ref: "#/components/responses/unauthorized" + * "404": + * $ref: "#/components/responses/not_found_error" + * "409": + * $ref: "#/components/responses/invalid_state_error" + * "422": + * $ref: "#/components/responses/invalid_request_error" + * "500": + * $ref: "#/components/responses/500_error" */ export default async (req: ExtendedRequest, res) => { const currencyService: CurrencyService = req.scope.resolve("currencyService") diff --git a/packages/medusa/src/api/routes/admin/currencies/update-currency.ts b/packages/medusa/src/api/routes/admin/currencies/update-currency.ts index c5c953fe8e..f8faebf4ee 100644 --- a/packages/medusa/src/api/routes/admin/currencies/update-currency.ts +++ b/packages/medusa/src/api/routes/admin/currencies/update-currency.ts @@ -50,12 +50,24 @@ import { EntityManager } from "typeorm" * tags: * - Currencies * responses: - * 200: + * "200": * description: OK * content: * application/json: * schema: * $ref: "#/components/schemas/AdminCurrenciesRes" + * "400": + * $ref: "#/components/responses/400_error" + * "401": + * $ref: "#/components/responses/unauthorized" + * "404": + * $ref: "#/components/responses/not_found_error" + * "409": + * $ref: "#/components/responses/invalid_state_error" + * "422": + * $ref: "#/components/responses/invalid_request_error" + * "500": + * $ref: "#/components/responses/500_error" */ export default async (req: ExtendedRequest, res) => { const code = req.params.code as string