feat: fixing tag :id in all services
This commit is contained in:
parent
2db60b7cf1
commit
ebac85837d
|
|
@ -61,7 +61,7 @@ func (_i *ppidDataApprovalHistoriesController) All(c *fiber.Ctx) error {
|
|||
// @Failure 400 {object} response.BadRequestError
|
||||
// @Failure 401 {object} response.UnauthorizedError
|
||||
// @Failure 500 {object} response.InternalServerError
|
||||
// @Router /ppid-data-approval-histories/:id [get]
|
||||
// @Router /ppid-data-approval-histories/{id} [get]
|
||||
func (_i *ppidDataApprovalHistoriesController) Show(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
@ -151,7 +151,7 @@ func (_i *ppidDataApprovalHistoriesController) Save(c *fiber.Ctx) error {
|
|||
// @Failure 404 {object} response.Response
|
||||
// @Failure 422 {object} response.Response
|
||||
// @Failure 500 {object} response.Response
|
||||
// @Router /ppid-data-approval-histories/:id [delete]
|
||||
// @Router /ppid-data-approval-histories/{id} [delete]
|
||||
func (_i *ppidDataApprovalHistoriesController) Delete(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ func (_i *requestForInformationItemsController) All(c *fiber.Ctx) error {
|
|||
// @Failure 400 {object} response.BadRequestError
|
||||
// @Failure 401 {object} response.UnauthorizedError
|
||||
// @Failure 500 {object} response.InternalServerError
|
||||
// @Router /request-for-information-items/:id [get]
|
||||
// @Router /request-for-information-items/{id} [get]
|
||||
func (_i *requestForInformationItemsController) Show(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
@ -141,7 +141,7 @@ func (_i *requestForInformationItemsController) Save(c *fiber.Ctx) error {
|
|||
// @Failure 400 {object} response.BadRequestError
|
||||
// @Failure 401 {object} response.UnauthorizedError
|
||||
// @Failure 500 {object} response.InternalServerError
|
||||
// @Router /request-for-information-items/:id [put]
|
||||
// @Router /request-for-information-items/{id} [put]
|
||||
func (_i *requestForInformationItemsController) Update(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
@ -174,7 +174,7 @@ func (_i *requestForInformationItemsController) Update(c *fiber.Ctx) error {
|
|||
// @Failure 400 {object} response.BadRequestError
|
||||
// @Failure 401 {object} response.UnauthorizedError
|
||||
// @Failure 500 {object} response.InternalServerError
|
||||
// @Router /request-for-information-items/:id [delete]
|
||||
// @Router /request-for-information-items/{id} [delete]
|
||||
func (_i *requestForInformationItemsController) Delete(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ func (_i *requestForInformationObjectionController) All(c *fiber.Ctx) error {
|
|||
// @Failure 400 {object} response.BadRequestError
|
||||
// @Failure 401 {object} response.UnauthorizedError
|
||||
// @Failure 500 {object} response.InternalServerError
|
||||
// @Router /request-for-information-objection/:id [get]
|
||||
// @Router /request-for-information-objection/{id} [get]
|
||||
func (_i *requestForInformationObjectionController) Show(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
@ -146,7 +146,7 @@ func (_i *requestForInformationObjectionController) Save(c *fiber.Ctx) error {
|
|||
// @Failure 400 {object} response.BadRequestError
|
||||
// @Failure 401 {object} response.UnauthorizedError
|
||||
// @Failure 500 {object} response.InternalServerError
|
||||
// @Router /request-for-information-objection/:id [put]
|
||||
// @Router /request-for-information-objection/{id} [put]
|
||||
func (_i *requestForInformationObjectionController) Update(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
@ -179,7 +179,7 @@ func (_i *requestForInformationObjectionController) Update(c *fiber.Ctx) error {
|
|||
// @Failure 400 {object} response.BadRequestError
|
||||
// @Failure 401 {object} response.UnauthorizedError
|
||||
// @Failure 500 {object} response.InternalServerError
|
||||
// @Router /request-for-information-objection/:id [delete]
|
||||
// @Router /request-for-information-objection/{id} [delete]
|
||||
func (_i *requestForInformationObjectionController) Delete(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ func (_i *requestForInformationRepliesController) All(c *fiber.Ctx) error {
|
|||
// @Failure 400 {object} response.BadRequestError
|
||||
// @Failure 401 {object} response.UnauthorizedError
|
||||
// @Failure 500 {object} response.InternalServerError
|
||||
// @Router /request-for-information-replies/:id [get]
|
||||
// @Router /request-for-information-replies/{id} [get]
|
||||
func (_i *requestForInformationRepliesController) Show(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
@ -143,7 +143,7 @@ func (_i *requestForInformationRepliesController) Save(c *fiber.Ctx) error {
|
|||
// @Failure 400 {object} response.BadRequestError
|
||||
// @Failure 401 {object} response.UnauthorizedError
|
||||
// @Failure 500 {object} response.InternalServerError
|
||||
// @Router /request-for-information-replies/:id [put]
|
||||
// @Router /request-for-information-replies/{id} [put]
|
||||
func (_i *requestForInformationRepliesController) Update(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
@ -176,7 +176,7 @@ func (_i *requestForInformationRepliesController) Update(c *fiber.Ctx) error {
|
|||
// @Failure 400 {object} response.BadRequestError
|
||||
// @Failure 401 {object} response.UnauthorizedError
|
||||
// @Failure 500 {object} response.InternalServerError
|
||||
// @Router /request-for-information-replies/:id [delete]
|
||||
// @Router /request-for-information-replies/{id} [delete]
|
||||
func (_i *requestForInformationRepliesController) Delete(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ func (_i *requestForInformationsController) All(c *fiber.Ctx) error {
|
|||
// @Failure 400 {object} response.BadRequestError
|
||||
// @Failure 401 {object} response.UnauthorizedError
|
||||
// @Failure 500 {object} response.InternalServerError
|
||||
// @Router /request-for-informations/:id [get]
|
||||
// @Router /request-for-informations/{id} [get]
|
||||
func (_i *requestForInformationsController) Show(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
@ -145,7 +145,7 @@ func (_i *requestForInformationsController) Save(c *fiber.Ctx) error {
|
|||
// @Failure 400 {object} response.BadRequestError
|
||||
// @Failure 401 {object} response.UnauthorizedError
|
||||
// @Failure 500 {object} response.InternalServerError
|
||||
// @Router /request-for-informations/:id [put]
|
||||
// @Router /request-for-informations/{id} [put]
|
||||
func (_i *requestForInformationsController) Update(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
@ -178,7 +178,7 @@ func (_i *requestForInformationsController) Update(c *fiber.Ctx) error {
|
|||
// @Failure 400 {object} response.BadRequestError
|
||||
// @Failure 401 {object} response.UnauthorizedError
|
||||
// @Failure 500 {object} response.InternalServerError
|
||||
// @Router /request-for-informations/:id [delete]
|
||||
// @Router /request-for-informations/{id} [delete]
|
||||
func (_i *requestForInformationsController) Delete(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ func (_i *userRoleLevelDetailsController) All(c *fiber.Ctx) error {
|
|||
// @Failure 404 {object} response.Response
|
||||
// @Failure 422 {object} response.Response
|
||||
// @Failure 500 {object} response.Response
|
||||
// @Router /user-role-level-details/:id [get]
|
||||
// @Router /user-role-level-details/{id} [get]
|
||||
func (_i *userRoleLevelDetailsController) Show(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
@ -130,7 +130,7 @@ func (_i *userRoleLevelDetailsController) Save(c *fiber.Ctx) error {
|
|||
// @Failure 404 {object} response.Response
|
||||
// @Failure 422 {object} response.Response
|
||||
// @Failure 500 {object} response.Response
|
||||
// @Router /user-role-level-details/:id [put]
|
||||
// @Router /user-role-level-details/{id} [put]
|
||||
func (_i *userRoleLevelDetailsController) Update(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
@ -163,7 +163,7 @@ func (_i *userRoleLevelDetailsController) Update(c *fiber.Ctx) error {
|
|||
// @Failure 404 {object} response.Response
|
||||
// @Failure 422 {object} response.Response
|
||||
// @Failure 500 {object} response.Response
|
||||
// @Router /user-role-level-details/:id [delete]
|
||||
// @Router /user-role-level-details/{id} [delete]
|
||||
func (_i *userRoleLevelDetailsController) Delete(c *fiber.Ctx) error {
|
||||
id, err := strconv.ParseUint(c.Params("id"), 10, 0)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -3469,7 +3469,56 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"/ppid-data-approval-histories/:id": {
|
||||
"/ppid-data-approval-histories/ppid-data/:ppidDataId": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"Bearer": []
|
||||
}
|
||||
],
|
||||
"description": "API for getting one PpidDataApprovalHistories",
|
||||
"tags": [
|
||||
"Task"
|
||||
],
|
||||
"summary": "Get one PpidDataApprovalHistories",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "PpidData ID",
|
||||
"name": "ppidDataId",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"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-data-approval-histories/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
|
|
@ -3571,55 +3620,6 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"/ppid-data-approval-histories/ppid-data/:ppidDataId": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"Bearer": []
|
||||
}
|
||||
],
|
||||
"description": "API for getting one PpidDataApprovalHistories",
|
||||
"tags": [
|
||||
"Task"
|
||||
],
|
||||
"summary": "Get one PpidDataApprovalHistories",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "PpidData ID",
|
||||
"name": "ppidDataId",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"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-data-categories": {
|
||||
"get": {
|
||||
"security": [
|
||||
|
|
@ -5447,7 +5447,7 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"/request-for-information-items/:id": {
|
||||
"/request-for-information-items/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
|
|
@ -5768,7 +5768,7 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"/request-for-information-objection/:id": {
|
||||
"/request-for-information-objection/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
|
|
@ -6092,7 +6092,7 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"/request-for-information-replies/:id": {
|
||||
"/request-for-information-replies/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
|
|
@ -6421,7 +6421,7 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"/request-for-informations/:id": {
|
||||
"/request-for-informations/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
|
|
@ -7241,7 +7241,7 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"/user-role-level-details/:id": {
|
||||
"/user-role-level-details/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3458,7 +3458,56 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/ppid-data-approval-histories/:id": {
|
||||
"/ppid-data-approval-histories/ppid-data/:ppidDataId": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"Bearer": []
|
||||
}
|
||||
],
|
||||
"description": "API for getting one PpidDataApprovalHistories",
|
||||
"tags": [
|
||||
"Task"
|
||||
],
|
||||
"summary": "Get one PpidDataApprovalHistories",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "PpidData ID",
|
||||
"name": "ppidDataId",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"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-data-approval-histories/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
|
|
@ -3560,55 +3609,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/ppid-data-approval-histories/ppid-data/:ppidDataId": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"Bearer": []
|
||||
}
|
||||
],
|
||||
"description": "API for getting one PpidDataApprovalHistories",
|
||||
"tags": [
|
||||
"Task"
|
||||
],
|
||||
"summary": "Get one PpidDataApprovalHistories",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "PpidData ID",
|
||||
"name": "ppidDataId",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"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-data-categories": {
|
||||
"get": {
|
||||
"security": [
|
||||
|
|
@ -5436,7 +5436,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/request-for-information-items/:id": {
|
||||
"/request-for-information-items/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
|
|
@ -5757,7 +5757,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/request-for-information-objection/:id": {
|
||||
"/request-for-information-objection/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
|
|
@ -6081,7 +6081,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/request-for-information-replies/:id": {
|
||||
"/request-for-information-replies/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
|
|
@ -6410,7 +6410,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/request-for-informations/:id": {
|
||||
"/request-for-informations/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
|
|
@ -7230,7 +7230,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/user-role-level-details/:id": {
|
||||
"/user-role-level-details/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3004,7 +3004,7 @@ paths:
|
|||
summary: Create PpidDataApprovalHistories
|
||||
tags:
|
||||
- Task
|
||||
/ppid-data-approval-histories/:id:
|
||||
/ppid-data-approval-histories/{id}:
|
||||
delete:
|
||||
description: API for delete PpidDataApprovalHistories
|
||||
parameters:
|
||||
|
|
@ -4251,7 +4251,7 @@ paths:
|
|||
summary: Create RequestForInformationItems
|
||||
tags:
|
||||
- RequestForInformationItems
|
||||
/request-for-information-items/:id:
|
||||
/request-for-information-items/{id}:
|
||||
delete:
|
||||
description: API for delete RequestForInformationItems
|
||||
parameters:
|
||||
|
|
@ -4453,7 +4453,7 @@ paths:
|
|||
summary: Create RequestForInformationObjection
|
||||
tags:
|
||||
- RequestForInformationObjection
|
||||
/request-for-information-objection/:id:
|
||||
/request-for-information-objection/{id}:
|
||||
delete:
|
||||
description: API for delete RequestForInformationObjection
|
||||
parameters:
|
||||
|
|
@ -4658,7 +4658,7 @@ paths:
|
|||
summary: Create RequestForInformationReplies
|
||||
tags:
|
||||
- RequestForInformationReplies
|
||||
/request-for-information-replies/:id:
|
||||
/request-for-information-replies/{id}:
|
||||
delete:
|
||||
description: API for delete RequestForInformationReplies
|
||||
parameters:
|
||||
|
|
@ -4866,7 +4866,7 @@ paths:
|
|||
summary: Create RequestForInformations
|
||||
tags:
|
||||
- RequestForInformations
|
||||
/request-for-informations/:id:
|
||||
/request-for-informations/{id}:
|
||||
delete:
|
||||
description: API for delete RequestForInformations
|
||||
parameters:
|
||||
|
|
@ -5386,7 +5386,7 @@ paths:
|
|||
summary: Create UserRoleLevelDetails
|
||||
tags:
|
||||
- Task
|
||||
/user-role-level-details/:id:
|
||||
/user-role-level-details/{id}:
|
||||
delete:
|
||||
description: API for delete UserRoleLevelDetails
|
||||
parameters:
|
||||
|
|
|
|||
Loading…
Reference in New Issue