From 704606b3f57fa85bc79ca7a6a58a3e86b2951016 Mon Sep 17 00:00:00 2001 From: GuwandykA Date: Wed, 12 Aug 2026 21:14:18 +0500 Subject: [PATCH] Regenerate Swagger docs for loan paid letter branches endpoint. Co-authored-by: Cursor --- docs/docs.go | 53 +++++++++++++++++++++++++++++++++++++++++++++++ docs/swagger.json | 53 +++++++++++++++++++++++++++++++++++++++++++++++ docs/swagger.yaml | 35 +++++++++++++++++++++++++++++++ 3 files changed, 141 insertions(+) diff --git a/docs/docs.go b/docs/docs.go index d7c11ec..334333e 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -2095,6 +2095,59 @@ const docTemplate = `{ } } }, + "/loan-paid-off-letters/branches": { + "get": { + "security": [ + { + "BearerAuth": [] + } + ], + "description": "Returns branches for the selected province (etrap) id for loan paid-off letter forms", + "produces": [ + "application/json" + ], + "tags": [ + "loan-paid-off-letters" + ], + "summary": "List branches by province", + "parameters": [ + { + "type": "integer", + "description": "Province ID", + "name": "province_id", + "in": "query", + "required": true + }, + { + "type": "boolean", + "default": true, + "description": "Only active branches", + "name": "active", + "in": "query" + } + ], + "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" + } + } + } + } + }, "/loan-paid-off-letters/{id}": { "get": { "security": [ diff --git a/docs/swagger.json b/docs/swagger.json index d349eda..b2e603a 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -2089,6 +2089,59 @@ } } }, + "/loan-paid-off-letters/branches": { + "get": { + "security": [ + { + "BearerAuth": [] + } + ], + "description": "Returns branches for the selected province (etrap) id for loan paid-off letter forms", + "produces": [ + "application/json" + ], + "tags": [ + "loan-paid-off-letters" + ], + "summary": "List branches by province", + "parameters": [ + { + "type": "integer", + "description": "Province ID", + "name": "province_id", + "in": "query", + "required": true + }, + { + "type": "boolean", + "default": true, + "description": "Only active branches", + "name": "active", + "in": "query" + } + ], + "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" + } + } + } + } + }, "/loan-paid-off-letters/{id}": { "get": { "security": [ diff --git a/docs/swagger.yaml b/docs/swagger.yaml index e7f5aed..6c1256d 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -2658,6 +2658,41 @@ paths: summary: Update loan paid off letter tags: - loan-paid-off-letters + /loan-paid-off-letters/branches: + get: + description: Returns branches for the selected province (etrap) id for loan + paid-off letter forms + parameters: + - description: Province ID + in: query + name: province_id + required: true + type: integer + - default: true + description: Only active branches + in: query + name: active + type: boolean + 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 by province + tags: + - loan-paid-off-letters /loan-types: get: description: Returns paginated loan types with optional filters