feat: update swagger docs
This commit is contained in:
parent
fb56849f7e
commit
8d0a00b37a
|
|
@ -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}": {
|
||||
"get": {
|
||||
"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": {
|
||||
"type": "object",
|
||||
"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}": {
|
||||
"get": {
|
||||
"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": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
|
|
|||
|
|
@ -238,6 +238,22 @@ definitions:
|
|||
- pathUrl
|
||||
- statusId
|
||||
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:
|
||||
properties:
|
||||
description:
|
||||
|
|
@ -3601,6 +3617,38 @@ paths:
|
|||
summary: update PpidDatas
|
||||
tags:
|
||||
- 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:
|
||||
get:
|
||||
description: API for getting all Provinces
|
||||
|
|
|
|||
Loading…
Reference in New Issue