feat: update swagger docs
This commit is contained in:
parent
b40b91f3a1
commit
55ad9b34ba
|
|
@ -4577,6 +4577,57 @@ const docTemplate = `{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/ppid-datas/approval": {
|
||||||
|
"put": {
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"Bearer": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "API for UpdateApprovalStatus PpidDatas",
|
||||||
|
"tags": [
|
||||||
|
"PPID Data"
|
||||||
|
],
|
||||||
|
"summary": "UpdateApprovalStatus PpidDatas",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"description": "Required payload",
|
||||||
|
"name": "payload",
|
||||||
|
"in": "body",
|
||||||
|
"required": true,
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/request.PpidDataApprovalHistoriesCreateRequest"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "OK",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/response.Response"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"description": "Bad Request",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/response.BadRequestError"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Unauthorized",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/response.UnauthorizedError"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"description": "Internal Server Error",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/response.InternalServerError"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"/ppid-datas/{id}": {
|
"/ppid-datas/{id}": {
|
||||||
"get": {
|
"get": {
|
||||||
"security": [
|
"security": [
|
||||||
|
|
@ -6837,6 +6888,29 @@ const docTemplate = `{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"request.PpidDataApprovalHistoriesCreateRequest": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"approvalAtLevel",
|
||||||
|
"approvalStatusId",
|
||||||
|
"message",
|
||||||
|
"ppidDataId"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"approvalAtLevel": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"approvalStatusId": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"ppidDataId": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"request.PpidDataCategoriesCreateRequest": {
|
"request.PpidDataCategoriesCreateRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
|
|
|
||||||
|
|
@ -4566,6 +4566,57 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/ppid-datas/approval": {
|
||||||
|
"put": {
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"Bearer": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "API for UpdateApprovalStatus PpidDatas",
|
||||||
|
"tags": [
|
||||||
|
"PPID Data"
|
||||||
|
],
|
||||||
|
"summary": "UpdateApprovalStatus PpidDatas",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"description": "Required payload",
|
||||||
|
"name": "payload",
|
||||||
|
"in": "body",
|
||||||
|
"required": true,
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/request.PpidDataApprovalHistoriesCreateRequest"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "OK",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/response.Response"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"description": "Bad Request",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/response.BadRequestError"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Unauthorized",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/response.UnauthorizedError"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"description": "Internal Server Error",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/response.InternalServerError"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"/ppid-datas/{id}": {
|
"/ppid-datas/{id}": {
|
||||||
"get": {
|
"get": {
|
||||||
"security": [
|
"security": [
|
||||||
|
|
@ -6826,6 +6877,29 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"request.PpidDataApprovalHistoriesCreateRequest": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"approvalAtLevel",
|
||||||
|
"approvalStatusId",
|
||||||
|
"message",
|
||||||
|
"ppidDataId"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"approvalAtLevel": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"approvalStatusId": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"ppidDataId": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"request.PpidDataCategoriesCreateRequest": {
|
"request.PpidDataCategoriesCreateRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
|
|
|
||||||
|
|
@ -238,6 +238,22 @@ definitions:
|
||||||
- pathUrl
|
- pathUrl
|
||||||
- statusId
|
- statusId
|
||||||
type: object
|
type: object
|
||||||
|
request.PpidDataApprovalHistoriesCreateRequest:
|
||||||
|
properties:
|
||||||
|
approvalAtLevel:
|
||||||
|
type: integer
|
||||||
|
approvalStatusId:
|
||||||
|
type: integer
|
||||||
|
message:
|
||||||
|
type: string
|
||||||
|
ppidDataId:
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- approvalAtLevel
|
||||||
|
- approvalStatusId
|
||||||
|
- message
|
||||||
|
- ppidDataId
|
||||||
|
type: object
|
||||||
request.PpidDataCategoriesCreateRequest:
|
request.PpidDataCategoriesCreateRequest:
|
||||||
properties:
|
properties:
|
||||||
description:
|
description:
|
||||||
|
|
@ -3601,6 +3617,38 @@ paths:
|
||||||
summary: update PpidDatas
|
summary: update PpidDatas
|
||||||
tags:
|
tags:
|
||||||
- PPID Data
|
- PPID Data
|
||||||
|
/ppid-datas/approval:
|
||||||
|
put:
|
||||||
|
description: API for UpdateApprovalStatus PpidDatas
|
||||||
|
parameters:
|
||||||
|
- description: Required payload
|
||||||
|
in: body
|
||||||
|
name: payload
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/request.PpidDataApprovalHistoriesCreateRequest'
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: OK
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/response.Response'
|
||||||
|
"400":
|
||||||
|
description: Bad Request
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/response.BadRequestError'
|
||||||
|
"401":
|
||||||
|
description: Unauthorized
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/response.UnauthorizedError'
|
||||||
|
"500":
|
||||||
|
description: Internal Server Error
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/response.InternalServerError'
|
||||||
|
security:
|
||||||
|
- Bearer: []
|
||||||
|
summary: UpdateApprovalStatus PpidDatas
|
||||||
|
tags:
|
||||||
|
- PPID Data
|
||||||
/provinces:
|
/provinces:
|
||||||
get:
|
get:
|
||||||
description: API for getting all Provinces
|
description: API for getting all Provinces
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue