feat: update swagger

This commit is contained in:
hanif salafi 2024-07-03 06:53:25 +07:00
parent a0bd1c9bc6
commit 5f2f722b13
3 changed files with 259 additions and 254 deletions

View File

@ -5316,17 +5316,17 @@ const docTemplate = `{
},
{
"type": "integer",
"name": "request_for_information_id",
"name": "requestForInformationId",
"in": "query"
},
{
"type": "string",
"name": "requested_info",
"name": "requestedInfo",
"in": "query"
},
{
"type": "integer",
"name": "status_id",
"name": "statusId",
"in": "query"
},
{
@ -5614,32 +5614,32 @@ const docTemplate = `{
"parameters": [
{
"type": "integer",
"name": "created_by_id",
"name": "createdById",
"in": "query"
},
{
"type": "string",
"name": "document_name",
"name": "documentName",
"in": "query"
},
{
"type": "string",
"name": "main_reason",
"name": "mainReason",
"in": "query"
},
{
"type": "integer",
"name": "request_for_information_id",
"name": "requestForInformationId",
"in": "query"
},
{
"type": "string",
"name": "secondary_reason",
"name": "secondaryReason",
"in": "query"
},
{
"type": "integer",
"name": "status_id",
"name": "statusId",
"in": "query"
},
{
@ -5941,14 +5941,19 @@ const docTemplate = `{
],
"summary": "Get all RequestForInformationReplies",
"parameters": [
{
"type": "integer",
"name": "createdById",
"in": "query"
},
{
"type": "string",
"name": "file_url",
"name": "fileUrl",
"in": "query"
},
{
"type": "integer",
"name": "request_for_information_item_id",
"name": "requestForInformationItemId",
"in": "query"
},
{
@ -5958,7 +5963,7 @@ const docTemplate = `{
},
{
"type": "integer",
"name": "status_id",
"name": "statusId",
"in": "query"
},
{
@ -6262,32 +6267,32 @@ const docTemplate = `{
"parameters": [
{
"type": "integer",
"name": "created_by_id",
"name": "createdById",
"in": "query"
},
{
"type": "string",
"name": "how_to_get_files",
"name": "howToGetFiles",
"in": "query"
},
{
"type": "string",
"name": "how_to_get_info",
"name": "howToGetInfo",
"in": "query"
},
{
"type": "string",
"name": "next_action",
"name": "nextAction",
"in": "query"
},
{
"type": "integer",
"name": "status_id",
"name": "statusId",
"in": "query"
},
{
"type": "string",
"name": "ticket_number",
"name": "ticketNumber",
"in": "query"
},
{
@ -8689,21 +8694,21 @@ const docTemplate = `{
"type": "object",
"required": [
"reason",
"request_for_information_id",
"requested_info",
"status_id"
"requestForInformationId",
"requestedInfo",
"statusId"
],
"properties": {
"reason": {
"type": "string"
},
"request_for_information_id": {
"requestForInformationId": {
"type": "integer"
},
"requested_info": {
"requestedInfo": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
}
}
@ -8713,9 +8718,9 @@ const docTemplate = `{
"required": [
"id",
"reason",
"request_for_information_id",
"requested_info",
"status_id"
"requestForInformationId",
"requestedInfo",
"statusId"
],
"properties": {
"id": {
@ -8724,13 +8729,13 @@ const docTemplate = `{
"reason": {
"type": "string"
},
"request_for_information_id": {
"requestForInformationId": {
"type": "integer"
},
"requested_info": {
"requestedInfo": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
}
}
@ -8738,26 +8743,26 @@ const docTemplate = `{
"request.RequestForInformationObjectionCreateRequest": {
"type": "object",
"required": [
"document_name",
"main_reason",
"request_for_information_id",
"secondary_reason",
"status_id"
"documentName",
"mainReason",
"requestForInformationId",
"secondaryReason",
"statusId"
],
"properties": {
"document_name": {
"documentName": {
"type": "string"
},
"main_reason": {
"mainReason": {
"type": "string"
},
"request_for_information_id": {
"requestForInformationId": {
"type": "integer"
},
"secondary_reason": {
"secondaryReason": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
}
}
@ -8765,30 +8770,30 @@ const docTemplate = `{
"request.RequestForInformationObjectionUpdateRequest": {
"type": "object",
"required": [
"document_name",
"documentName",
"id",
"main_reason",
"request_for_information_id",
"secondary_reason",
"status_id"
"mainReason",
"requestForInformationId",
"secondaryReason",
"statusId"
],
"properties": {
"document_name": {
"documentName": {
"type": "string"
},
"id": {
"type": "integer"
},
"main_reason": {
"mainReason": {
"type": "string"
},
"request_for_information_id": {
"requestForInformationId": {
"type": "integer"
},
"secondary_reason": {
"secondaryReason": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
}
}
@ -8796,22 +8801,22 @@ const docTemplate = `{
"request.RequestForInformationRepliesCreateRequest": {
"type": "object",
"required": [
"file_url",
"request_for_information_item_id",
"fileUrl",
"requestForInformationItemId",
"response",
"status_id"
"statusId"
],
"properties": {
"file_url": {
"fileUrl": {
"type": "string"
},
"request_for_information_item_id": {
"requestForInformationItemId": {
"type": "integer"
},
"response": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
}
}
@ -8819,56 +8824,53 @@ const docTemplate = `{
"request.RequestForInformationRepliesUpdateRequest": {
"type": "object",
"required": [
"file_url",
"fileUrl",
"id",
"request_for_information_item_id",
"requestForInformationItemId",
"response",
"status_id"
"statusId"
],
"properties": {
"file_url": {
"fileUrl": {
"type": "string"
},
"id": {
"type": "integer"
},
"request_for_information_item_id": {
"requestForInformationItemId": {
"type": "integer"
},
"response": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
},
"updated_at": {
"type": "string"
}
}
},
"request.RequestForInformationsCreateRequest": {
"type": "object",
"required": [
"how_to_get_files",
"how_to_get_info",
"next_action",
"status_id",
"ticket_number"
"howToGetFiles",
"howToGetInfo",
"nextAction",
"statusId",
"ticketNumber"
],
"properties": {
"how_to_get_files": {
"howToGetFiles": {
"type": "string"
},
"how_to_get_info": {
"howToGetInfo": {
"type": "string"
},
"next_action": {
"nextAction": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
},
"ticket_number": {
"ticketNumber": {
"type": "string"
}
}
@ -8876,30 +8878,30 @@ const docTemplate = `{
"request.RequestForInformationsUpdateRequest": {
"type": "object",
"required": [
"how_to_get_files",
"how_to_get_info",
"howToGetFiles",
"howToGetInfo",
"id",
"next_action",
"status_id",
"ticket_number"
"nextAction",
"statusId",
"ticketNumber"
],
"properties": {
"how_to_get_files": {
"howToGetFiles": {
"type": "string"
},
"how_to_get_info": {
"howToGetInfo": {
"type": "string"
},
"id": {
"type": "integer"
},
"next_action": {
"nextAction": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
},
"ticket_number": {
"ticketNumber": {
"type": "string"
}
}

View File

@ -5305,17 +5305,17 @@
},
{
"type": "integer",
"name": "request_for_information_id",
"name": "requestForInformationId",
"in": "query"
},
{
"type": "string",
"name": "requested_info",
"name": "requestedInfo",
"in": "query"
},
{
"type": "integer",
"name": "status_id",
"name": "statusId",
"in": "query"
},
{
@ -5603,32 +5603,32 @@
"parameters": [
{
"type": "integer",
"name": "created_by_id",
"name": "createdById",
"in": "query"
},
{
"type": "string",
"name": "document_name",
"name": "documentName",
"in": "query"
},
{
"type": "string",
"name": "main_reason",
"name": "mainReason",
"in": "query"
},
{
"type": "integer",
"name": "request_for_information_id",
"name": "requestForInformationId",
"in": "query"
},
{
"type": "string",
"name": "secondary_reason",
"name": "secondaryReason",
"in": "query"
},
{
"type": "integer",
"name": "status_id",
"name": "statusId",
"in": "query"
},
{
@ -5930,14 +5930,19 @@
],
"summary": "Get all RequestForInformationReplies",
"parameters": [
{
"type": "integer",
"name": "createdById",
"in": "query"
},
{
"type": "string",
"name": "file_url",
"name": "fileUrl",
"in": "query"
},
{
"type": "integer",
"name": "request_for_information_item_id",
"name": "requestForInformationItemId",
"in": "query"
},
{
@ -5947,7 +5952,7 @@
},
{
"type": "integer",
"name": "status_id",
"name": "statusId",
"in": "query"
},
{
@ -6251,32 +6256,32 @@
"parameters": [
{
"type": "integer",
"name": "created_by_id",
"name": "createdById",
"in": "query"
},
{
"type": "string",
"name": "how_to_get_files",
"name": "howToGetFiles",
"in": "query"
},
{
"type": "string",
"name": "how_to_get_info",
"name": "howToGetInfo",
"in": "query"
},
{
"type": "string",
"name": "next_action",
"name": "nextAction",
"in": "query"
},
{
"type": "integer",
"name": "status_id",
"name": "statusId",
"in": "query"
},
{
"type": "string",
"name": "ticket_number",
"name": "ticketNumber",
"in": "query"
},
{
@ -8678,21 +8683,21 @@
"type": "object",
"required": [
"reason",
"request_for_information_id",
"requested_info",
"status_id"
"requestForInformationId",
"requestedInfo",
"statusId"
],
"properties": {
"reason": {
"type": "string"
},
"request_for_information_id": {
"requestForInformationId": {
"type": "integer"
},
"requested_info": {
"requestedInfo": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
}
}
@ -8702,9 +8707,9 @@
"required": [
"id",
"reason",
"request_for_information_id",
"requested_info",
"status_id"
"requestForInformationId",
"requestedInfo",
"statusId"
],
"properties": {
"id": {
@ -8713,13 +8718,13 @@
"reason": {
"type": "string"
},
"request_for_information_id": {
"requestForInformationId": {
"type": "integer"
},
"requested_info": {
"requestedInfo": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
}
}
@ -8727,26 +8732,26 @@
"request.RequestForInformationObjectionCreateRequest": {
"type": "object",
"required": [
"document_name",
"main_reason",
"request_for_information_id",
"secondary_reason",
"status_id"
"documentName",
"mainReason",
"requestForInformationId",
"secondaryReason",
"statusId"
],
"properties": {
"document_name": {
"documentName": {
"type": "string"
},
"main_reason": {
"mainReason": {
"type": "string"
},
"request_for_information_id": {
"requestForInformationId": {
"type": "integer"
},
"secondary_reason": {
"secondaryReason": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
}
}
@ -8754,30 +8759,30 @@
"request.RequestForInformationObjectionUpdateRequest": {
"type": "object",
"required": [
"document_name",
"documentName",
"id",
"main_reason",
"request_for_information_id",
"secondary_reason",
"status_id"
"mainReason",
"requestForInformationId",
"secondaryReason",
"statusId"
],
"properties": {
"document_name": {
"documentName": {
"type": "string"
},
"id": {
"type": "integer"
},
"main_reason": {
"mainReason": {
"type": "string"
},
"request_for_information_id": {
"requestForInformationId": {
"type": "integer"
},
"secondary_reason": {
"secondaryReason": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
}
}
@ -8785,22 +8790,22 @@
"request.RequestForInformationRepliesCreateRequest": {
"type": "object",
"required": [
"file_url",
"request_for_information_item_id",
"fileUrl",
"requestForInformationItemId",
"response",
"status_id"
"statusId"
],
"properties": {
"file_url": {
"fileUrl": {
"type": "string"
},
"request_for_information_item_id": {
"requestForInformationItemId": {
"type": "integer"
},
"response": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
}
}
@ -8808,56 +8813,53 @@
"request.RequestForInformationRepliesUpdateRequest": {
"type": "object",
"required": [
"file_url",
"fileUrl",
"id",
"request_for_information_item_id",
"requestForInformationItemId",
"response",
"status_id"
"statusId"
],
"properties": {
"file_url": {
"fileUrl": {
"type": "string"
},
"id": {
"type": "integer"
},
"request_for_information_item_id": {
"requestForInformationItemId": {
"type": "integer"
},
"response": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
},
"updated_at": {
"type": "string"
}
}
},
"request.RequestForInformationsCreateRequest": {
"type": "object",
"required": [
"how_to_get_files",
"how_to_get_info",
"next_action",
"status_id",
"ticket_number"
"howToGetFiles",
"howToGetInfo",
"nextAction",
"statusId",
"ticketNumber"
],
"properties": {
"how_to_get_files": {
"howToGetFiles": {
"type": "string"
},
"how_to_get_info": {
"howToGetInfo": {
"type": "string"
},
"next_action": {
"nextAction": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
},
"ticket_number": {
"ticketNumber": {
"type": "string"
}
}
@ -8865,30 +8867,30 @@
"request.RequestForInformationsUpdateRequest": {
"type": "object",
"required": [
"how_to_get_files",
"how_to_get_info",
"howToGetFiles",
"howToGetInfo",
"id",
"next_action",
"status_id",
"ticket_number"
"nextAction",
"statusId",
"ticketNumber"
],
"properties": {
"how_to_get_files": {
"howToGetFiles": {
"type": "string"
},
"how_to_get_info": {
"howToGetInfo": {
"type": "string"
},
"id": {
"type": "integer"
},
"next_action": {
"nextAction": {
"type": "string"
},
"status_id": {
"statusId": {
"type": "integer"
},
"ticket_number": {
"ticketNumber": {
"type": "string"
}
}

View File

@ -373,17 +373,17 @@ definitions:
properties:
reason:
type: string
request_for_information_id:
requestForInformationId:
type: integer
requested_info:
requestedInfo:
type: string
status_id:
statusId:
type: integer
required:
- reason
- request_for_information_id
- requested_info
- status_id
- requestForInformationId
- requestedInfo
- statusId
type: object
request.RequestForInformationItemsUpdateRequest:
properties:
@ -391,137 +391,135 @@ definitions:
type: integer
reason:
type: string
request_for_information_id:
requestForInformationId:
type: integer
requested_info:
requestedInfo:
type: string
status_id:
statusId:
type: integer
required:
- id
- reason
- request_for_information_id
- requested_info
- status_id
- requestForInformationId
- requestedInfo
- statusId
type: object
request.RequestForInformationObjectionCreateRequest:
properties:
document_name:
documentName:
type: string
main_reason:
mainReason:
type: string
request_for_information_id:
requestForInformationId:
type: integer
secondary_reason:
secondaryReason:
type: string
status_id:
statusId:
type: integer
required:
- document_name
- main_reason
- request_for_information_id
- secondary_reason
- status_id
- documentName
- mainReason
- requestForInformationId
- secondaryReason
- statusId
type: object
request.RequestForInformationObjectionUpdateRequest:
properties:
document_name:
documentName:
type: string
id:
type: integer
main_reason:
mainReason:
type: string
request_for_information_id:
requestForInformationId:
type: integer
secondary_reason:
secondaryReason:
type: string
status_id:
statusId:
type: integer
required:
- document_name
- documentName
- id
- main_reason
- request_for_information_id
- secondary_reason
- status_id
- mainReason
- requestForInformationId
- secondaryReason
- statusId
type: object
request.RequestForInformationRepliesCreateRequest:
properties:
file_url:
fileUrl:
type: string
request_for_information_item_id:
requestForInformationItemId:
type: integer
response:
type: string
status_id:
statusId:
type: integer
required:
- file_url
- request_for_information_item_id
- fileUrl
- requestForInformationItemId
- response
- status_id
- statusId
type: object
request.RequestForInformationRepliesUpdateRequest:
properties:
file_url:
fileUrl:
type: string
id:
type: integer
request_for_information_item_id:
requestForInformationItemId:
type: integer
response:
type: string
status_id:
statusId:
type: integer
updated_at:
type: string
required:
- file_url
- fileUrl
- id
- request_for_information_item_id
- requestForInformationItemId
- response
- status_id
- statusId
type: object
request.RequestForInformationsCreateRequest:
properties:
how_to_get_files:
howToGetFiles:
type: string
how_to_get_info:
howToGetInfo:
type: string
next_action:
nextAction:
type: string
status_id:
statusId:
type: integer
ticket_number:
ticketNumber:
type: string
required:
- how_to_get_files
- how_to_get_info
- next_action
- status_id
- ticket_number
- howToGetFiles
- howToGetInfo
- nextAction
- statusId
- ticketNumber
type: object
request.RequestForInformationsUpdateRequest:
properties:
how_to_get_files:
howToGetFiles:
type: string
how_to_get_info:
howToGetInfo:
type: string
id:
type: integer
next_action:
nextAction:
type: string
status_id:
statusId:
type: integer
ticket_number:
ticketNumber:
type: string
required:
- how_to_get_files
- how_to_get_info
- howToGetFiles
- howToGetInfo
- id
- next_action
- status_id
- ticket_number
- nextAction
- statusId
- ticketNumber
type: object
request.UserLevelsCreateRequest:
properties:
@ -4168,13 +4166,13 @@ paths:
name: reason
type: string
- in: query
name: request_for_information_id
name: requestForInformationId
type: integer
- in: query
name: requested_info
name: requestedInfo
type: string
- in: query
name: status_id
name: statusId
type: integer
- in: query
name: count
@ -4355,22 +4353,22 @@ paths:
description: API for getting all RequestForInformationObjection
parameters:
- in: query
name: created_by_id
name: createdById
type: integer
- in: query
name: document_name
name: documentName
type: string
- in: query
name: main_reason
name: mainReason
type: string
- in: query
name: request_for_information_id
name: requestForInformationId
type: integer
- in: query
name: secondary_reason
name: secondaryReason
type: string
- in: query
name: status_id
name: statusId
type: integer
- in: query
name: count
@ -4563,16 +4561,19 @@ paths:
description: API for getting all RequestForInformationReplies
parameters:
- in: query
name: file_url
name: createdById
type: integer
- in: query
name: fileUrl
type: string
- in: query
name: request_for_information_item_id
name: requestForInformationItemId
type: integer
- in: query
name: response
type: string
- in: query
name: status_id
name: statusId
type: integer
- in: query
name: count
@ -4765,22 +4766,22 @@ paths:
description: API for getting all RequestForInformations
parameters:
- in: query
name: created_by_id
name: createdById
type: integer
- in: query
name: how_to_get_files
name: howToGetFiles
type: string
- in: query
name: how_to_get_info
name: howToGetInfo
type: string
- in: query
name: next_action
name: nextAction
type: string
- in: query
name: status_id
name: statusId
type: integer
- in: query
name: ticket_number
name: ticketNumber
type: string
- in: query
name: count