Regenerate Swagger docs for loan paid letter branches endpoint.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
guwandykandCursor committed 2026-08-12 21:14:18 +05:00
1 parent 5f6ddc5217
commit 704606b3f5
3 files changed
+141

No files matched your search

+53
View File
@@ -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}": { "/loan-paid-off-letters/{id}": {
"get": { "get": {
"security": [ "security": [
+53
View File
@@ -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}": { "/loan-paid-off-letters/{id}": {
"get": { "get": {
"security": [ "security": [
+35
View File
@@ -2658,6 +2658,41 @@ paths:
summary: Update loan paid off letter summary: Update loan paid off letter
tags: tags:
- loan-paid-off-letters - 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: /loan-types:
get: get:
description: Returns paginated loan types with optional filters description: Returns paginated loan types with optional filters