changed column name
This commit is contained in:
@@ -31,12 +31,6 @@
|
||||
"name": "province_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Filter by location ID",
|
||||
"name": "location_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by province name (en, ru, tm)",
|
||||
@@ -601,8 +595,8 @@
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Filter by status",
|
||||
"name": "status",
|
||||
"description": "Filter by active",
|
||||
"name": "active",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
@@ -855,7 +849,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/loans-documents/{id}/status": {
|
||||
"/loans-documents/{id}/active": {
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
@@ -872,7 +866,7 @@
|
||||
"tags": [
|
||||
"loan-document"
|
||||
],
|
||||
"summary": "Update loan document status",
|
||||
"summary": "Update loan document active",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
@@ -882,366 +876,12 @@
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Status payload",
|
||||
"description": "Active payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/loansdocument.UpdateLoanDocumentStatusDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/locations": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns paginated locations with optional filters",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "List locations",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Filter by province ID",
|
||||
"name": "province_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by province name (en, ru, tm)",
|
||||
"name": "province_name",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by location name (en, ru, tm)",
|
||||
"name": "location_name",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Filter by location status",
|
||||
"name": "status",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"default": 1,
|
||||
"description": "Page number",
|
||||
"name": "page",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"default": 10,
|
||||
"description": "Items per page",
|
||||
"name": "limit",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Creates a new location in a province",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "Create location",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Location payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/location.CreateLocationDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/locations/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns a single location",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "Get location by ID",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Location ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Updates an existing location",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "Update location",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Location ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Location payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/location.UpdateLocationDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Deletes a location",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "Delete location",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Location ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/locations/{id}/status": {
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Enables or disables a location",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "Update location status",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Location ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Status payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/location.UpdateLocationStatusDTO"
|
||||
"$ref": "#/definitions/loansdocument.UpdateLoanDocumentActiveDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -1343,8 +983,8 @@
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Filter by status",
|
||||
"name": "status",
|
||||
"description": "Filter by active",
|
||||
"name": "active",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
@@ -1597,7 +1237,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/payment-cards/{id}/status": {
|
||||
"/payment-cards/{id}/active": {
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
@@ -1614,7 +1254,7 @@
|
||||
"tags": [
|
||||
"payment-card"
|
||||
],
|
||||
"summary": "Update payment card status",
|
||||
"summary": "Update payment card active",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
@@ -1624,12 +1264,12 @@
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Status payload",
|
||||
"description": "Active payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/paymentcard.UpdatePaymentCardStatusDTO"
|
||||
"$ref": "#/definitions/paymentcard.UpdatePaymentCardActiveDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -1909,7 +1549,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Deletes a province and its locations",
|
||||
"description": "Deletes a province",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -2333,7 +1973,6 @@
|
||||
"type": "object",
|
||||
"required": [
|
||||
"address",
|
||||
"locationId",
|
||||
"provinceId",
|
||||
"title",
|
||||
"unikalNomer"
|
||||
@@ -2366,9 +2005,6 @@
|
||||
"billingUsernameVisa": {
|
||||
"type": "string"
|
||||
},
|
||||
"locationId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"provinceId": {
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -2398,7 +2034,6 @@
|
||||
"type": "object",
|
||||
"required": [
|
||||
"address",
|
||||
"locationId",
|
||||
"provinceId",
|
||||
"title",
|
||||
"unikalNomer"
|
||||
@@ -2431,9 +2066,6 @@
|
||||
"billingUsernameVisa": {
|
||||
"type": "string"
|
||||
},
|
||||
"locationId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"provinceId": {
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -2454,6 +2086,9 @@
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"contentEn": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2463,9 +2098,6 @@
|
||||
"contentTm": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/loansdocument.LocalizedTitle"
|
||||
}
|
||||
@@ -2485,6 +2117,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"loansdocument.UpdateLoanDocumentActiveDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"loansdocument.UpdateLoanDocumentDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -2494,6 +2134,9 @@
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"contentEn": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2503,22 +2146,11 @@
|
||||
"contentTm": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/loansdocument.LocalizedTitle"
|
||||
}
|
||||
}
|
||||
},
|
||||
"loansdocument.UpdateLoanDocumentStatusDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"loantype.CreateLoanTypeDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -2579,64 +2211,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"location.CreateLocationDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"provinceId",
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"provinceId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/location.LocalizedTitle"
|
||||
}
|
||||
}
|
||||
},
|
||||
"location.LocalizedTitle": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"en": {
|
||||
"type": "string"
|
||||
},
|
||||
"ru": {
|
||||
"type": "string"
|
||||
},
|
||||
"tm": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"location.UpdateLocationDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"provinceId",
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"provinceId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/location.LocalizedTitle"
|
||||
}
|
||||
}
|
||||
},
|
||||
"location.UpdateLocationStatusDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"paymentcard.CreatePaymentCardDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -2645,15 +2219,15 @@
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/definitions/paymentcard.LocalizedText"
|
||||
},
|
||||
"price": {
|
||||
"type": "number"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/paymentcard.LocalizedText"
|
||||
}
|
||||
@@ -2673,6 +2247,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"paymentcard.UpdatePaymentCardActiveDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"paymentcard.UpdatePaymentCardDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -2681,43 +2263,39 @@
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/definitions/paymentcard.LocalizedText"
|
||||
},
|
||||
"price": {
|
||||
"type": "number"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/paymentcard.LocalizedText"
|
||||
}
|
||||
}
|
||||
},
|
||||
"paymentcard.UpdatePaymentCardStatusDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"province.CreateProvinceDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"title"
|
||||
"name",
|
||||
"region"
|
||||
],
|
||||
"properties": {
|
||||
"status": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/province.LocalizedTitle"
|
||||
"name": {
|
||||
"$ref": "#/definitions/province.LocalizedName"
|
||||
},
|
||||
"region": {
|
||||
"$ref": "#/definitions/province.LocalizedName"
|
||||
}
|
||||
}
|
||||
},
|
||||
"province.LocalizedTitle": {
|
||||
"province.LocalizedName": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"en": {
|
||||
@@ -2734,14 +2312,18 @@
|
||||
"province.UpdateProvinceDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"title"
|
||||
"name",
|
||||
"region"
|
||||
],
|
||||
"properties": {
|
||||
"status": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/province.LocalizedTitle"
|
||||
"name": {
|
||||
"$ref": "#/definitions/province.LocalizedName"
|
||||
},
|
||||
"region": {
|
||||
"$ref": "#/definitions/province.LocalizedName"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user