basePath: /api/admin definitions: appresult.AppError: properties: code: type: string message: type: string status: type: boolean type: object appresult.AppSuccess: properties: code: type: string data: {} message: type: string status: type: boolean type: object auth.LoginDTO: properties: email: type: string password: type: string required: - email - password type: object auth.RefreshTokenDTO: properties: refreshToken: type: string required: - refreshToken type: object branches.CreateBranchDTO: properties: address: $ref: '#/definitions/branches.LocalizedText' billingPassword: type: string billingPasswordSber: type: string billingPasswordSwift: type: string billingPasswordVisa: type: string billingUsername: type: string billingUsernameSber: type: string billingUsernameSwift: type: string billingUsernameVisa: type: string locationId: type: integer provinceId: type: integer title: $ref: '#/definitions/branches.LocalizedText' unikalNomer: type: string required: - address - locationId - provinceId - title - unikalNomer type: object branches.LocalizedText: properties: en: type: string ru: type: string tm: type: string type: object branches.UpdateBranchDTO: properties: address: $ref: '#/definitions/branches.LocalizedText' billingPassword: type: string billingPasswordSber: type: string billingPasswordSwift: type: string billingPasswordVisa: type: string billingUsername: type: string billingUsernameSber: type: string billingUsernameSwift: type: string billingUsernameVisa: type: string locationId: type: integer provinceId: type: integer title: $ref: '#/definitions/branches.LocalizedText' unikalNomer: type: string required: - address - locationId - provinceId - title - unikalNomer type: object loansdocument.CreateLoanDocumentDTO: properties: contentEn: type: string contentRu: type: string contentTm: type: string status: type: boolean title: $ref: '#/definitions/loansdocument.LocalizedTitle' required: - contentEn - contentRu - contentTm - title type: object loansdocument.LocalizedTitle: properties: en: type: string ru: type: string tm: type: string type: object loansdocument.UpdateLoanDocumentDTO: properties: contentEn: type: string contentRu: type: string contentTm: type: string status: type: boolean title: $ref: '#/definitions/loansdocument.LocalizedTitle' required: - contentEn - contentRu - contentTm - title type: object loansdocument.UpdateLoanDocumentStatusDTO: properties: status: type: boolean type: object loantype.CreateLoanTypeDTO: properties: content: $ref: '#/definitions/loantype.LocalizedTitle' loanTerm: type: string tax: type: number title: $ref: '#/definitions/loantype.LocalizedTitle' required: - content - loanTerm - tax - title type: object loantype.LocalizedTitle: properties: en: type: string ru: type: string tm: type: string type: object loantype.UpdateLoanTypeDTO: properties: content: $ref: '#/definitions/loantype.LocalizedTitle' loanTerm: type: string tax: type: number title: $ref: '#/definitions/loantype.LocalizedTitle' required: - content - loanTerm - tax - title type: object location.CreateLocationDTO: properties: provinceId: type: integer status: type: boolean title: $ref: '#/definitions/location.LocalizedTitle' required: - provinceId - title type: object location.LocalizedTitle: properties: en: type: string ru: type: string tm: type: string type: object location.UpdateLocationDTO: properties: provinceId: type: integer status: type: boolean title: $ref: '#/definitions/location.LocalizedTitle' required: - provinceId - title type: object location.UpdateLocationStatusDTO: properties: status: type: boolean type: object paymentcard.CreatePaymentCardDTO: properties: content: $ref: '#/definitions/paymentcard.LocalizedText' price: type: number status: type: boolean title: $ref: '#/definitions/paymentcard.LocalizedText' required: - content - price - title type: object paymentcard.LocalizedText: properties: en: type: string ru: type: string tm: type: string type: object paymentcard.UpdatePaymentCardDTO: properties: content: $ref: '#/definitions/paymentcard.LocalizedText' price: type: number status: type: boolean title: $ref: '#/definitions/paymentcard.LocalizedText' required: - content - price - title type: object paymentcard.UpdatePaymentCardStatusDTO: properties: status: type: boolean type: object province.CreateProvinceDTO: properties: status: type: boolean title: $ref: '#/definitions/province.LocalizedTitle' required: - title type: object province.LocalizedTitle: properties: en: type: string ru: type: string tm: type: string type: object province.UpdateProvinceDTO: properties: status: type: boolean title: $ref: '#/definitions/province.LocalizedTitle' required: - title type: object reasonscard.CreateReasonCardDTO: properties: content: $ref: '#/definitions/reasonscard.LocalizedText' price: type: number title: $ref: '#/definitions/reasonscard.LocalizedText' required: - content - price - title type: object reasonscard.LocalizedText: properties: en: type: string ru: type: string tm: type: string type: object reasonscard.UpdateReasonCardDTO: properties: content: $ref: '#/definitions/reasonscard.LocalizedText' price: type: number title: $ref: '#/definitions/reasonscard.LocalizedText' required: - content - price - title type: object host: localhost:5050 info: contact: {} description: Online payment system admin API. title: Service APIs version: "1.0" paths: /branches: get: description: Returns paginated branches with optional filters parameters: - description: Filter by province ID in: query name: province_id type: integer - description: Filter by location ID in: query name: location_id type: integer - description: Filter by province name (en, ru, tm) in: query name: province_name type: string - description: Filter by branch name (en, ru, tm) in: query name: branch_name type: string - description: Filter by unique number in: query name: unikal_nomer type: string - default: 1 description: Page number in: query name: page type: integer - default: 10 description: Items per page in: query name: limit type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: List branches tags: - branches post: consumes: - application/json description: Creates a new branch parameters: - description: Branch payload in: body name: body required: true schema: $ref: '#/definitions/branches.CreateBranchDTO' produces: - application/json responses: "201": description: Created schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Create branch tags: - branches /branches/{id}: delete: description: Deletes a branch parameters: - description: Branch ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Delete branch tags: - branches get: description: Returns a single branch parameters: - description: Branch ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Get branch by ID tags: - branches put: consumes: - application/json description: Updates an existing branch parameters: - description: Branch ID in: path name: id required: true type: integer - description: Branch payload in: body name: body required: true schema: $ref: '#/definitions/branches.UpdateBranchDTO' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Update branch tags: - branches /loan-types: get: description: Returns paginated loan types with optional filters parameters: - description: Filter by title (en, ru, tm) in: query name: loan_type_name type: string - default: 1 description: Page number in: query name: page type: integer - default: 10 description: Items per page in: query name: limit type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: List loan types tags: - loan-type post: consumes: - application/json description: Creates a new loan type parameters: - description: Loan type payload in: body name: body required: true schema: $ref: '#/definitions/loantype.CreateLoanTypeDTO' produces: - application/json responses: "201": description: Created schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Create loan type tags: - loan-type /loan-types/{id}: delete: description: Deletes a loan type parameters: - description: Loan type ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Delete loan type tags: - loan-type get: description: Returns a single loan type parameters: - description: Loan type ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Get loan type by ID tags: - loan-type put: consumes: - application/json description: Updates an existing loan type parameters: - description: Loan type ID in: path name: id required: true type: integer - description: Loan type payload in: body name: body required: true schema: $ref: '#/definitions/loantype.UpdateLoanTypeDTO' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Update loan type tags: - loan-type /loans-documents: get: description: Returns paginated loan documents with optional filters parameters: - description: Filter by title (en, ru, tm) in: query name: document_name type: string - description: Filter by status in: query name: status type: boolean - default: 1 description: Page number in: query name: page type: integer - default: 10 description: Items per page in: query name: limit type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: List loan documents tags: - loan-document post: consumes: - application/json description: Creates a new loan document parameters: - description: Loan document payload in: body name: body required: true schema: $ref: '#/definitions/loansdocument.CreateLoanDocumentDTO' produces: - application/json responses: "201": description: Created schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Create loan document tags: - loan-document /loans-documents/{id}: delete: description: Deletes a loan document parameters: - description: Loan document ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Delete loan document tags: - loan-document get: description: Returns a single loan document parameters: - description: Loan document ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Get loan document by ID tags: - loan-document put: consumes: - application/json description: Updates an existing loan document parameters: - description: Loan document ID in: path name: id required: true type: integer - description: Loan document payload in: body name: body required: true schema: $ref: '#/definitions/loansdocument.UpdateLoanDocumentDTO' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Update loan document tags: - loan-document /loans-documents/{id}/status: put: consumes: - application/json description: Enables or disables a loan document parameters: - description: Loan document ID in: path name: id required: true type: integer - description: Status payload in: body name: body required: true schema: $ref: '#/definitions/loansdocument.UpdateLoanDocumentStatusDTO' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Update loan document status tags: - loan-document /locations: get: description: Returns paginated locations with optional filters parameters: - description: Filter by province ID in: query name: province_id type: integer - description: Filter by province name (en, ru, tm) in: query name: province_name type: string - description: Filter by location name (en, ru, tm) in: query name: location_name type: string - description: Filter by location status in: query name: status type: boolean - default: 1 description: Page number in: query name: page type: integer - default: 10 description: Items per page in: query name: limit type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: List locations tags: - location post: consumes: - application/json description: Creates a new location in a province parameters: - description: Location payload in: body name: body required: true schema: $ref: '#/definitions/location.CreateLocationDTO' produces: - application/json responses: "201": description: Created schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Create location tags: - location /locations/{id}: delete: description: Deletes a location parameters: - description: Location ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Delete location tags: - location get: description: Returns a single location parameters: - description: Location ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Get location by ID tags: - location put: consumes: - application/json description: Updates an existing location parameters: - description: Location ID in: path name: id required: true type: integer - description: Location payload in: body name: body required: true schema: $ref: '#/definitions/location.UpdateLocationDTO' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Update location tags: - location /locations/{id}/status: put: consumes: - application/json description: Enables or disables a location parameters: - description: Location ID in: path name: id required: true type: integer - description: Status payload in: body name: body required: true schema: $ref: '#/definitions/location.UpdateLocationStatusDTO' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Update location status tags: - location /login: post: consumes: - application/json description: Authenticates a user by email and password parameters: - description: Login payload in: body name: body required: true schema: $ref: '#/definitions/auth.LoginDTO' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "401": description: Unauthorized schema: $ref: '#/definitions/appresult.AppError' summary: Login tags: - auth /payment-cards: get: description: Returns paginated payment cards with optional filters parameters: - description: Filter by card title (en, ru, tm) in: query name: card_name type: string - description: Filter by status in: query name: status type: boolean - default: 1 description: Page number in: query name: page type: integer - default: 10 description: Items per page in: query name: limit type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: List payment cards tags: - payment-card post: consumes: - application/json description: Creates a new payment card parameters: - description: Payment card payload in: body name: body required: true schema: $ref: '#/definitions/paymentcard.CreatePaymentCardDTO' produces: - application/json responses: "201": description: Created schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Create payment card tags: - payment-card /payment-cards/{id}: delete: description: Deletes a payment card parameters: - description: Payment card ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Delete payment card tags: - payment-card get: description: Returns a single payment card parameters: - description: Payment card ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Get payment card by ID tags: - payment-card put: consumes: - application/json description: Updates an existing payment card parameters: - description: Payment card ID in: path name: id required: true type: integer - description: Payment card payload in: body name: body required: true schema: $ref: '#/definitions/paymentcard.UpdatePaymentCardDTO' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Update payment card tags: - payment-card /payment-cards/{id}/status: put: consumes: - application/json description: Enables or disables a payment card parameters: - description: Payment card ID in: path name: id required: true type: integer - description: Status payload in: body name: body required: true schema: $ref: '#/definitions/paymentcard.UpdatePaymentCardStatusDTO' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Update payment card status tags: - payment-card /profile: get: description: Returns the authenticated user's profile produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "401": description: Unauthorized schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Get profile tags: - auth /provinces: get: description: Returns all provinces produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: List provinces tags: - province post: consumes: - application/json description: Creates a new province parameters: - description: Province payload in: body name: body required: true schema: $ref: '#/definitions/province.CreateProvinceDTO' produces: - application/json responses: "201": description: Created schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Create province tags: - province /provinces/{id}: delete: description: Deletes a province and its locations parameters: - description: Province ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Delete province tags: - province get: description: Returns a single province parameters: - description: Province ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Get province by ID tags: - province put: consumes: - application/json description: Updates an existing province parameters: - description: Province ID in: path name: id required: true type: integer - description: Province payload in: body name: body required: true schema: $ref: '#/definitions/province.UpdateProvinceDTO' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Update province tags: - province /reasons-cards: get: description: Returns paginated reason cards with optional filters parameters: - description: Filter by title (en, ru, tm) in: query name: reason_name type: string - default: 1 description: Page number in: query name: page type: integer - default: 10 description: Items per page in: query name: limit type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: List reason cards tags: - reason-card post: consumes: - application/json description: Creates a new reason card parameters: - description: Reason card payload in: body name: body required: true schema: $ref: '#/definitions/reasonscard.CreateReasonCardDTO' produces: - application/json responses: "201": description: Created schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Create reason card tags: - reason-card /reasons-cards/{id}: delete: description: Deletes a reason card parameters: - description: Reason card ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Delete reason card tags: - reason-card get: description: Returns a single reason card parameters: - description: Reason card ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Get reason card by ID tags: - reason-card put: consumes: - application/json description: Updates an existing reason card parameters: - description: Reason card ID in: path name: id required: true type: integer - description: Reason card payload in: body name: body required: true schema: $ref: '#/definitions/reasonscard.UpdateReasonCardDTO' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "404": description: Not Found schema: $ref: '#/definitions/appresult.AppError' "500": description: Internal Server Error schema: $ref: '#/definitions/appresult.AppError' security: - BearerAuth: [] summary: Update reason card tags: - reason-card /token: post: consumes: - application/json description: Issues a new access and refresh token pair parameters: - description: Refresh token payload in: body name: body required: true schema: $ref: '#/definitions/auth.RefreshTokenDTO' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/appresult.AppSuccess' "400": description: Bad Request schema: $ref: '#/definitions/appresult.AppError' "401": description: Unauthorized schema: $ref: '#/definitions/appresult.AppError' summary: Refresh tokens tags: - auth securityDefinitions: BearerAuth: in: header name: Authorization type: apiKey swagger: "2.0"