2024-03-05 19:15:53 +00:00
|
|
|
// Package swagger Code generated by swaggo/swag. DO NOT EDIT
|
|
|
|
|
package swagger
|
|
|
|
|
|
|
|
|
|
import "github.com/swaggo/swag"
|
|
|
|
|
|
|
|
|
|
const docTemplate = `{
|
|
|
|
|
"schemes": {{ marshal .Schemes }},
|
|
|
|
|
"swagger": "2.0",
|
|
|
|
|
"info": {
|
|
|
|
|
"description": "{{escape .Description}}",
|
|
|
|
|
"title": "{{.Title}}",
|
|
|
|
|
"contact": {},
|
|
|
|
|
"version": "{{.Version}}"
|
|
|
|
|
},
|
|
|
|
|
"host": "{{.Host}}",
|
|
|
|
|
"basePath": "{{.BasePath}}",
|
|
|
|
|
"paths": {
|
|
|
|
|
"/article-categories": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all ArticleCategories",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Article Categories"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all ArticleCategories",
|
2024-04-16 02:08:00 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "description",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"name": "isPublish",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "parentId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "statusId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "title",
|
|
|
|
|
"in": "query"
|
2024-04-28 18:39:43 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
2024-04-16 02:08:00 +00:00
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create ArticleCategories",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Article Categories"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create ArticleCategories",
|
|
|
|
|
"parameters": [
|
2024-05-05 09:24:49 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "Bearer \u003cAdd access token here\u003e",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.ArticleCategoriesCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-05 09:24:49 +00:00
|
|
|
"/article-categories/thumbnail/viewer/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for View Thumbnail of ArticleCategories",
|
|
|
|
|
"tags": [
|
|
|
|
|
"Article Categories"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Viewer ArticleCategories",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "ArticleCategories ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/article-categories/thumbnail/{id}": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for Upload ArticleCategories Thumbnail",
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"Article Categories"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Upload ArticleCategories Thumbnail",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "file",
|
|
|
|
|
"description": "Upload thumbnail",
|
|
|
|
|
"name": "files",
|
|
|
|
|
"in": "formData",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "ArticleCategories ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
"/article-categories/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one ArticleCategories",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Article Categories"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one ArticleCategories",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "ArticleCategories ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update ArticleCategories",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Article Categories"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "update ArticleCategories",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/request.ArticleCategoriesUpdateRequest"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "ArticleCategories ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete ArticleCategories",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Article Categories"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "delete ArticleCategories",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "ArticleCategories ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/article-category-details": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all ArticleCategoryDetails",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all ArticleCategoryDetails",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create ArticleCategoryDetails",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create ArticleCategoryDetails",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/article-category-details/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one ArticleCategoryDetails",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one ArticleCategoryDetails",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "ArticleCategoryDetails ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update ArticleCategoryDetails",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "update ArticleCategoryDetails",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "ArticleCategoryDetails ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete ArticleCategoryDetails",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "delete ArticleCategoryDetails",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "ArticleCategoryDetails ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/article-files": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all ArticleFiles",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Article Files"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all ArticleFiles",
|
2024-04-28 18:39:43 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "articleId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "fileName",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"name": "isPublish",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "statusId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-03-31 23:25:59 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-05-10 00:57:35 +00:00
|
|
|
"/article-files/viewer/{filename}": {
|
2024-03-31 23:25:59 +00:00
|
|
|
"get": {
|
2024-03-05 19:15:53 +00:00
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create ArticleFiles",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Article Files"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create ArticleFiles",
|
2024-03-31 23:25:59 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2024-05-10 00:57:35 +00:00
|
|
|
"description": "Article File Name",
|
|
|
|
|
"name": "filename",
|
2024-03-31 23:25:59 +00:00
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-31 23:25:59 +00:00
|
|
|
"/article-files/{articleId}": {
|
2024-03-06 14:00:43 +00:00
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create ArticleFiles",
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Article Files"
|
2024-03-06 14:00:43 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Upload ArticleFiles",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "file",
|
|
|
|
|
"description": "Upload file",
|
|
|
|
|
"name": "files",
|
|
|
|
|
"in": "formData",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
{
|
2024-03-31 23:25:59 +00:00
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Article ID",
|
|
|
|
|
"name": "articleId",
|
2024-03-06 14:00:43 +00:00
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/article-files/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one ArticleFiles",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Article Files"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one ArticleFiles",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "ArticleFiles ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update ArticleFiles",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Article Files"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:17:25 +00:00
|
|
|
"summary": "Update ArticleFiles",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
2024-03-31 23:25:59 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.ArticleFilesUpdateRequest"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "ArticleFiles ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete ArticleFiles",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Article Files"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:17:25 +00:00
|
|
|
"summary": "Delete ArticleFiles",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "ArticleFiles ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/articles": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all Articles",
|
|
|
|
|
"tags": [
|
2024-03-31 15:19:45 +00:00
|
|
|
"Articles"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all Articles",
|
2024-03-31 15:19:45 +00:00
|
|
|
"parameters": [
|
2024-05-05 09:24:49 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "categoryId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "createdById",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-03-31 15:19:45 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "description",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"name": "isPublish",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "statusId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "tags",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "title",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "typeId",
|
|
|
|
|
"in": "query"
|
2024-04-28 18:39:43 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
2024-03-31 15:19:45 +00:00
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create Articles",
|
|
|
|
|
"tags": [
|
2024-03-31 15:19:45 +00:00
|
|
|
"Articles"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create Articles",
|
2024-03-31 15:19:45 +00:00
|
|
|
"parameters": [
|
2024-05-05 09:24:49 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "Bearer \u003cAdd access token here\u003e",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2024-03-31 15:19:45 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.ArticlesCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-05 09:24:49 +00:00
|
|
|
"/articles/thumbnail/viewer/{thumbnailName}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for View Thumbnail of Article",
|
|
|
|
|
"tags": [
|
|
|
|
|
"Articles"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Viewer Articles Thumbnail",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "Articles Thumbnail Name",
|
|
|
|
|
"name": "thumbnailName",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/articles/thumbnail/{id}": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for Save Thumbnail of Articles",
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"Articles"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Save Thumbnail Articles",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "file",
|
|
|
|
|
"description": "Upload thumbnail",
|
|
|
|
|
"name": "files",
|
|
|
|
|
"in": "formData",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Articles ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
"/articles/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one Articles",
|
|
|
|
|
"tags": [
|
2024-03-31 15:19:45 +00:00
|
|
|
"Articles"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one Articles",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Articles ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update Articles",
|
|
|
|
|
"tags": [
|
2024-03-31 15:19:45 +00:00
|
|
|
"Articles"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:17:25 +00:00
|
|
|
"summary": "Update Articles",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
2024-03-31 15:19:45 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.ArticlesUpdateRequest"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Articles ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete Articles",
|
|
|
|
|
"tags": [
|
2024-03-31 15:19:45 +00:00
|
|
|
"Articles"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:17:25 +00:00
|
|
|
"summary": "Delete Articles",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Articles ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/cities": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all Cities",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all Cities",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create Cities",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create Cities",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.CitiesCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/cities/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one Cities",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one Cities",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Cities ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update Cities",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:17:25 +00:00
|
|
|
"summary": "Update Cities",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Cities ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.CitiesUpdateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete Cities",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:17:25 +00:00
|
|
|
"summary": "Delete Cities",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Cities ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/districts": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all Districts",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all Districts",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create Districts",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create Districts",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/districts/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one Districts",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one Districts",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Districts ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update Districts",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:17:25 +00:00
|
|
|
"summary": "Update Districts",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Districts ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete Districts",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:17:25 +00:00
|
|
|
"summary": "Delete Districts",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Districts ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/magazine-files": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all MagazineFiles",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Magazine Files"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all MagazineFiles",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create MagazineFiles",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Magazine Files"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create MagazineFiles",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/magazine-files/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one MagazineFiles",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Magazine Files"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one MagazineFiles",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "MagazineFiles ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update MagazineFiles",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Magazine Files"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:17:25 +00:00
|
|
|
"summary": "Update MagazineFiles",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "MagazineFiles ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete MagazineFiles",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Magazine Files"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "delete MagazineFiles",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "MagazineFiles ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/magazines": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all Magazines",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Magazines"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all Magazines",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create Magazines",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Magazines"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create Magazines",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/magazines/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one Magazines",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Magazines"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one Magazines",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Magazines ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update Magazines",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Magazines"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:17:25 +00:00
|
|
|
"summary": "Update Magazines",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Magazines ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete Magazines",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Magazines"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:17:25 +00:00
|
|
|
"summary": "Delete Magazines",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Magazines ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/master-menus": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all MasterMenus",
|
|
|
|
|
"tags": [
|
2024-04-29 18:09:11 +00:00
|
|
|
"MasterMenus"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all MasterMenus",
|
2024-04-29 18:09:11 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "description",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "moduleId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "parentMenuId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "statusId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create MasterMenus",
|
|
|
|
|
"tags": [
|
2024-04-29 18:09:11 +00:00
|
|
|
"MasterMenus"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create MasterMenus",
|
2024-04-29 18:09:11 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.MasterMenusCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/master-menus/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one MasterMenus",
|
|
|
|
|
"tags": [
|
2024-04-29 18:09:11 +00:00
|
|
|
"MasterMenus"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one MasterMenus",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "MasterMenus ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update MasterMenus",
|
|
|
|
|
"tags": [
|
2024-04-29 18:09:11 +00:00
|
|
|
"MasterMenus"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:09:11 +00:00
|
|
|
"summary": "Update MasterMenus",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "MasterMenus ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete MasterMenus",
|
|
|
|
|
"tags": [
|
2024-04-29 18:09:11 +00:00
|
|
|
"MasterMenus"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:09:11 +00:00
|
|
|
"summary": "Delete MasterMenus",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "MasterMenus ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/master-modules": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all MasterModules",
|
|
|
|
|
"tags": [
|
2024-04-29 18:09:11 +00:00
|
|
|
"MasterModules"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all MasterModules",
|
2024-04-29 18:09:11 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "description",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "statusId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create MasterModules",
|
|
|
|
|
"tags": [
|
2024-04-29 18:09:11 +00:00
|
|
|
"MasterModules"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create MasterModules",
|
2024-04-29 18:09:11 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.MasterModulesCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/master-modules/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one MasterModules",
|
|
|
|
|
"tags": [
|
2024-04-29 18:09:11 +00:00
|
|
|
"MasterModules"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one MasterModules",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "MasterModules ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update MasterModules",
|
|
|
|
|
"tags": [
|
2024-04-29 18:09:11 +00:00
|
|
|
"MasterModules"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:09:11 +00:00
|
|
|
"summary": "Update MasterModules",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "MasterModules ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
2024-04-29 18:09:11 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.MasterModulesUpdateRequest"
|
|
|
|
|
}
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete MasterModules",
|
|
|
|
|
"tags": [
|
2024-04-29 18:09:11 +00:00
|
|
|
"MasterModules"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:09:11 +00:00
|
|
|
"summary": "Delete MasterModules",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "MasterModules ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-29 18:09:11 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/master-statuses": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all MasterStatuses",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all MasterStatuses",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create MasterStatuses",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create MasterStatuses",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/master-statuses/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one MasterStatuses",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one MasterStatuses",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "MasterStatuses ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update MasterStatuses",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:17:25 +00:00
|
|
|
"summary": "Update MasterStatuses",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "MasterStatuses ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete MasterStatuses",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:17:25 +00:00
|
|
|
"summary": "Delete MasterStatuses",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "MasterStatuses ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-05 14:55:06 +00:00
|
|
|
"/ppid-data-approval-histories": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all PpidDataApprovalHistories",
|
|
|
|
|
"tags": [
|
|
|
|
|
"Task"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Get all PpidDataApprovalHistories",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create PpidDataApprovalHistories",
|
|
|
|
|
"tags": [
|
|
|
|
|
"Task"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Create PpidDataApprovalHistories",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "Bearer \u003cAdd access token here\u003e",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-03 05:19:57 +00:00
|
|
|
"/ppid-data-approval-histories/ppid-data/:ppidDataId": {
|
2024-05-05 14:55:06 +00:00
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one PpidDataApprovalHistories",
|
|
|
|
|
"tags": [
|
|
|
|
|
"Task"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Get one PpidDataApprovalHistories",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2024-07-03 05:19:57 +00:00
|
|
|
"description": "PpidData ID",
|
|
|
|
|
"name": "ppidDataId",
|
2024-05-05 14:55:06 +00:00
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-07-03 05:19:57 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/ppid-data-approval-histories/{id}": {
|
|
|
|
|
"get": {
|
2024-05-05 14:55:06 +00:00
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-07-03 05:19:57 +00:00
|
|
|
"description": "API for getting one PpidDataApprovalHistories",
|
2024-05-05 14:55:06 +00:00
|
|
|
"tags": [
|
|
|
|
|
"Task"
|
|
|
|
|
],
|
2024-07-03 05:19:57 +00:00
|
|
|
"summary": "Get one PpidDataApprovalHistories",
|
2024-05-05 14:55:06 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "PpidDataApprovalHistories ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-03 05:19:57 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-05-05 14:55:06 +00:00
|
|
|
"schema": {
|
2024-07-03 05:19:57 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-05-05 14:55:06 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-07-03 05:19:57 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-05-05 14:55:06 +00:00
|
|
|
"schema": {
|
2024-07-03 05:19:57 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-05-05 14:55:06 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-07-03 05:19:57 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-05-05 14:55:06 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-07-03 05:19:57 +00:00
|
|
|
},
|
|
|
|
|
"delete": {
|
2024-05-05 14:55:06 +00:00
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-07-03 05:19:57 +00:00
|
|
|
"description": "API for delete PpidDataApprovalHistories",
|
2024-05-05 14:55:06 +00:00
|
|
|
"tags": [
|
|
|
|
|
"Task"
|
|
|
|
|
],
|
2024-07-03 05:19:57 +00:00
|
|
|
"summary": "delete PpidDataApprovalHistories",
|
2024-05-05 14:55:06 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2024-07-03 05:19:57 +00:00
|
|
|
"description": "PpidDataApprovalHistories ID",
|
|
|
|
|
"name": "id",
|
2024-05-05 14:55:06 +00:00
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-03 05:19:57 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-05-05 14:55:06 +00:00
|
|
|
"schema": {
|
2024-07-03 05:19:57 +00:00
|
|
|
"$ref": "#/definitions/response.Response"
|
2024-05-05 14:55:06 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-07-03 05:19:57 +00:00
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
2024-05-05 14:55:06 +00:00
|
|
|
"schema": {
|
2024-07-03 05:19:57 +00:00
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
2024-05-05 14:55:06 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-07-03 05:19:57 +00:00
|
|
|
"$ref": "#/definitions/response.Response"
|
2024-05-05 14:55:06 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
"/ppid-data-categories": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all PpidDataCategories",
|
|
|
|
|
"tags": [
|
2024-04-28 18:39:43 +00:00
|
|
|
"PPID Categories"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all PpidDataCategories",
|
2024-04-28 18:39:43 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "description",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-05-06 18:04:50 +00:00
|
|
|
{
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"name": "isOnlyTop",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-05-15 15:27:46 +00:00
|
|
|
{
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"name": "isPpidDataIncluded",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-05-06 18:04:50 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "parentId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "title",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create PpidDataCategories",
|
|
|
|
|
"tags": [
|
2024-04-28 18:39:43 +00:00
|
|
|
"PPID Categories"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create PpidDataCategories",
|
2024-04-28 18:39:43 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.PpidDataCategoriesCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-28 03:07:38 +00:00
|
|
|
"/ppid-data-categories/position": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for Update Position PpidDataCategories",
|
|
|
|
|
"tags": [
|
|
|
|
|
"PPID Categories"
|
|
|
|
|
],
|
|
|
|
|
"summary": "UpdatePosition PpidDataCategories",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.PpidDataCategoriesUpdatePositionPayload"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-06 18:04:50 +00:00
|
|
|
"/ppid-data-categories/slug/{slug}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one PpidDataCategories",
|
|
|
|
|
"tags": [
|
|
|
|
|
"PPID Categories"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Get one PpidDataCategories",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "PpidDataCategories Slug",
|
|
|
|
|
"name": "slug",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-05 09:24:49 +00:00
|
|
|
"/ppid-data-categories/thumbnail/viewer/{id}": {
|
|
|
|
|
"get": {
|
2024-05-03 13:19:54 +00:00
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-05-05 09:24:49 +00:00
|
|
|
"description": "API for View Thumbnail of PpidDataCategories",
|
2024-05-03 13:19:54 +00:00
|
|
|
"tags": [
|
|
|
|
|
"PPID Categories"
|
|
|
|
|
],
|
2024-05-05 09:24:49 +00:00
|
|
|
"summary": "Viewer PpidDataCategories",
|
2024-05-03 13:19:54 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
2024-05-05 09:24:49 +00:00
|
|
|
"type": "string",
|
|
|
|
|
"description": "PPID Categories ID",
|
2024-05-03 13:19:54 +00:00
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-05 09:24:49 +00:00
|
|
|
"/ppid-data-categories/thumbnail/{id}": {
|
|
|
|
|
"post": {
|
2024-05-03 13:19:54 +00:00
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-05-05 09:24:49 +00:00
|
|
|
"description": "API for Upload PpidDataCategories Thumbnail",
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
2024-05-03 13:19:54 +00:00
|
|
|
"tags": [
|
|
|
|
|
"PPID Categories"
|
|
|
|
|
],
|
2024-05-05 09:24:49 +00:00
|
|
|
"summary": "Upload PpidDataCategories Thumbnail",
|
2024-05-03 13:19:54 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
2024-05-05 09:24:49 +00:00
|
|
|
"type": "file",
|
|
|
|
|
"description": "Upload thumbnail",
|
|
|
|
|
"name": "files",
|
|
|
|
|
"in": "formData",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Ppid Data Category ID",
|
2024-05-03 13:19:54 +00:00
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
"/ppid-data-categories/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one PpidDataCategories",
|
|
|
|
|
"tags": [
|
2024-04-28 18:39:43 +00:00
|
|
|
"PPID Categories"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one PpidDataCategories",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "PpidDataCategories ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update PpidDataCategories",
|
|
|
|
|
"tags": [
|
2024-04-28 18:39:43 +00:00
|
|
|
"PPID Categories"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-05-05 09:24:49 +00:00
|
|
|
"summary": "Update PpidDataCategories",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
2024-04-28 18:39:43 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.PpidDataCategoriesUpdateRequest"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "PpidDataCategories ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete PpidDataCategories",
|
|
|
|
|
"tags": [
|
2024-04-28 18:39:43 +00:00
|
|
|
"PPID Categories"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-05-03 13:19:54 +00:00
|
|
|
"summary": "Delete PpidDataCategories",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "PpidDataCategories ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/ppid-data-files": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all PpidDataFiles",
|
|
|
|
|
"tags": [
|
2024-04-28 18:39:43 +00:00
|
|
|
"PPID Files"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all PpidDataFiles",
|
2024-04-28 18:39:43 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "description",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "fileType",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"name": "isPublish",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-07-15 04:22:38 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "position",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "ppidDataId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "statusId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "title",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "unit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-04-28 18:39:43 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-05-28 17:21:17 +00:00
|
|
|
"/ppid-data-files/update/position": {
|
2024-05-28 03:07:38 +00:00
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-05-28 17:21:17 +00:00
|
|
|
"description": "API for PpidDataFiles",
|
2024-05-28 03:07:38 +00:00
|
|
|
"tags": [
|
|
|
|
|
"PPID Files"
|
|
|
|
|
],
|
2024-05-28 17:21:17 +00:00
|
|
|
"summary": "updatePosition PpidDataFiles",
|
2024-05-28 03:07:38 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.PpidDataFilesUpdatePositionPayload"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 17:34:05 +00:00
|
|
|
"/ppid-data-files/viewer/{filename}": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"get": {
|
2024-03-05 19:15:53 +00:00
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create PpidDataFiles",
|
|
|
|
|
"tags": [
|
2024-04-28 18:39:43 +00:00
|
|
|
"PPID Files"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create PpidDataFiles",
|
2024-04-28 18:39:43 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2024-04-29 17:34:05 +00:00
|
|
|
"description": "Ppid Data Filename",
|
|
|
|
|
"name": "filename",
|
2024-04-28 18:39:43 +00:00
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/ppid-data-files/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one PpidDataFiles",
|
|
|
|
|
"tags": [
|
2024-04-28 18:39:43 +00:00
|
|
|
"PPID Files"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one PpidDataFiles",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "PpidDataFiles ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update PpidDataFiles",
|
|
|
|
|
"tags": [
|
2024-04-28 18:39:43 +00:00
|
|
|
"PPID Files"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "update PpidDataFiles",
|
|
|
|
|
"parameters": [
|
2024-04-28 18:39:43 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.PpidDataFilesUpdateRequest"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2024-04-28 18:39:43 +00:00
|
|
|
"description": "Ppid Data ID",
|
2024-03-05 19:15:53 +00:00
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete PpidDataFiles",
|
|
|
|
|
"tags": [
|
2024-04-28 18:39:43 +00:00
|
|
|
"PPID Files"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "delete PpidDataFiles",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "PpidDataFiles ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
2024-04-28 18:39:43 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/ppid-data-files/{ppidDataId}": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create PpidDataFiles",
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"PPID Files"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Create PpidDataFiles",
|
|
|
|
|
"parameters": [
|
2024-07-02 03:24:55 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "Titles",
|
|
|
|
|
"name": "titles",
|
|
|
|
|
"in": "formData"
|
|
|
|
|
},
|
2024-05-29 04:46:00 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "Types",
|
|
|
|
|
"name": "types",
|
|
|
|
|
"in": "formData"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "Positions",
|
|
|
|
|
"name": "positions",
|
|
|
|
|
"in": "formData"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "Upload Url",
|
|
|
|
|
"name": "urls",
|
|
|
|
|
"in": "formData"
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
{
|
|
|
|
|
"type": "file",
|
2024-05-29 04:46:00 +00:00
|
|
|
"description": "Upload File",
|
2024-04-28 18:39:43 +00:00
|
|
|
"name": "files",
|
2024-05-29 04:46:00 +00:00
|
|
|
"in": "formData"
|
2024-03-05 19:15:53 +00:00
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Ppid Data ID",
|
|
|
|
|
"name": "ppidDataId",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/ppid-datas": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all PpidDatas",
|
|
|
|
|
"tags": [
|
2024-04-28 18:39:43 +00:00
|
|
|
"PPID Data"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all PpidDatas",
|
2024-04-28 18:39:43 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
2024-05-12 05:15:13 +00:00
|
|
|
"type": "string",
|
|
|
|
|
"default": "Bearer \u003cAdd access token here\u003e",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
2024-04-28 18:39:43 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2024-05-12 05:15:13 +00:00
|
|
|
"name": "categoryId",
|
2024-04-28 18:39:43 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "description",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "group",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"name": "isPublish",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "levelGroupId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "statusId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "title",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-05-12 05:15:13 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "userId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "userLevelId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "userRoleId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create PpidDatas",
|
|
|
|
|
"tags": [
|
2024-04-28 18:39:43 +00:00
|
|
|
"PPID Data"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create PpidDatas",
|
2024-04-28 18:39:43 +00:00
|
|
|
"parameters": [
|
2024-04-29 09:46:37 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.PpidDatasCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-05 14:56:19 +00:00
|
|
|
"/ppid-datas/approval": {
|
2024-05-07 17:30:55 +00:00
|
|
|
"post": {
|
2024-05-05 14:56:19 +00:00
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for UpdateApprovalStatus PpidDatas",
|
|
|
|
|
"tags": [
|
|
|
|
|
"PPID Data"
|
|
|
|
|
],
|
|
|
|
|
"summary": "UpdateApprovalStatus PpidDatas",
|
|
|
|
|
"parameters": [
|
2024-05-07 17:30:55 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "Bearer \u003cAdd access token here\u003e",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2024-05-05 14:56:19 +00:00
|
|
|
{
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-28 03:07:38 +00:00
|
|
|
"/ppid-datas/position": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for Update Position PpidDatas",
|
|
|
|
|
"tags": [
|
|
|
|
|
"PPID Data"
|
|
|
|
|
],
|
|
|
|
|
"summary": "UpdatePosition PpidDatas",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.PpidDatasUpdatePositionPayload"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
"/ppid-datas/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one PpidDatas",
|
|
|
|
|
"tags": [
|
2024-04-28 18:39:43 +00:00
|
|
|
"PPID Data"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one PpidDatas",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2024-04-30 03:53:50 +00:00
|
|
|
"type": "string",
|
|
|
|
|
"description": "PpidDatas [ ID / Slug ]",
|
2024-03-05 19:15:53 +00:00
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update PpidDatas",
|
|
|
|
|
"tags": [
|
2024-04-28 18:39:43 +00:00
|
|
|
"PPID Data"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "update PpidDatas",
|
|
|
|
|
"parameters": [
|
2024-04-28 18:39:43 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.PpidDatasCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "PpidDatas ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete PpidDatas",
|
|
|
|
|
"tags": [
|
2024-04-28 18:39:43 +00:00
|
|
|
"PPID Data"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "delete PpidDatas",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "PpidDatas ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-28 18:39:43 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/provinces": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all Provinces",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all Provinces",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create Provinces",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create Provinces",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/provinces/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one Provinces",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one Provinces",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Provinces ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update Provinces",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:17:25 +00:00
|
|
|
"summary": "Update Provinces",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Provinces ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete Provinces",
|
|
|
|
|
"tags": [
|
2024-04-29 18:17:25 +00:00
|
|
|
"Untags"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-04-29 18:17:25 +00:00
|
|
|
"summary": "Delete Provinces",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Provinces ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-02 02:02:56 +00:00
|
|
|
"/request-for-information-items": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all RequestForInformationItems",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationItems"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Get all RequestForInformationItems",
|
|
|
|
|
"parameters": [
|
2024-07-15 04:30:12 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "detailedInfo",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-07-02 02:02:56 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "reason",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-07-02 02:48:27 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "requestForInformationId",
|
2024-07-02 02:48:27 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-07-02 02:02:56 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "requestedInfo",
|
2024-07-02 02:02:56 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "statusId",
|
2024-07-02 02:02:56 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create RequestForInformationItems",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationItems"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Create RequestForInformationItems",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.RequestForInformationItemsCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-03 05:19:57 +00:00
|
|
|
"/request-for-information-items/{id}": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one RequestForInformationItems",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationItems"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Get one RequestForInformationItems",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "RequestForInformationItems ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update RequestForInformationItems",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationItems"
|
|
|
|
|
],
|
|
|
|
|
"summary": "update RequestForInformationItems",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.RequestForInformationItemsUpdateRequest"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "RequestForInformationItems ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete RequestForInformationItems",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationItems"
|
|
|
|
|
],
|
|
|
|
|
"summary": "delete RequestForInformationItems",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "RequestForInformationItems ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-02 03:12:17 +00:00
|
|
|
"/request-for-information-objection": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all RequestForInformationObjection",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationObjection"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Get all RequestForInformationObjection",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "createdById",
|
2024-07-02 03:12:17 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "documentName",
|
2024-07-02 03:12:17 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "mainReason",
|
2024-07-02 03:12:17 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2024-07-03 02:09:04 +00:00
|
|
|
"name": "requestForInformationItemId",
|
2024-07-02 03:12:17 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "secondaryReason",
|
2024-07-02 03:12:17 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "statusId",
|
2024-07-02 03:12:17 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create RequestForInformationObjection",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationObjection"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Create RequestForInformationObjection",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "Bearer \u003cAdd access token here\u003e",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.RequestForInformationObjectionCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-10 17:16:47 +00:00
|
|
|
"/request-for-information-objection-replies": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all RequestForInformationObjectionReplies",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationObjectionReplies"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Get all RequestForInformationObjectionReplies",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "createdById",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "requestForInformationObjectionId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "response",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "statusId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create RequestForInformationObjectionReplies",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationObjectionReplies"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Create RequestForInformationObjectionReplies",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "Bearer \u003cAdd access token here\u003e",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.RequestForInformationObjectionRepliesCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/request-for-information-objection-replies/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one RequestForInformationObjectionReplies",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationObjectionReplies"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Get one RequestForInformationObjectionReplies",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "RequestForInformationObjectionReplies ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update RequestForInformationObjectionReplies",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationObjectionReplies"
|
|
|
|
|
],
|
|
|
|
|
"summary": "update RequestForInformationObjectionReplies",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.RequestForInformationObjectionRepliesUpdateRequest"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "RequestForInformationObjectionReplies ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete RequestForInformationObjectionReplies",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationObjectionReplies"
|
|
|
|
|
],
|
|
|
|
|
"summary": "delete RequestForInformationObjectionReplies",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "RequestForInformationObjectionReplies ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-03 05:19:57 +00:00
|
|
|
"/request-for-information-objection/{id}": {
|
2024-07-02 03:12:17 +00:00
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one RequestForInformationObjection",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationObjection"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Get one RequestForInformationObjection",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "RequestForInformationObjection ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update RequestForInformationObjection",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationObjection"
|
|
|
|
|
],
|
|
|
|
|
"summary": "update RequestForInformationObjection",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "Bearer \u003cAdd access token here\u003e",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.RequestForInformationObjectionUpdateRequest"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "RequestForInformationObjection ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete RequestForInformationObjection",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationObjection"
|
|
|
|
|
],
|
|
|
|
|
"summary": "delete RequestForInformationObjection",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "RequestForInformationObjection ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-02 02:02:56 +00:00
|
|
|
"/request-for-information-replies": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all RequestForInformationReplies",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationReplies"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Get all RequestForInformationReplies",
|
|
|
|
|
"parameters": [
|
2024-07-02 23:53:25 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "createdById",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-07-02 02:02:56 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "fileUrl",
|
2024-07-02 02:02:56 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "requestForInformationItemId",
|
2024-07-02 02:02:56 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "response",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "statusId",
|
2024-07-02 02:02:56 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create RequestForInformationReplies",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationReplies"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Create RequestForInformationReplies",
|
|
|
|
|
"parameters": [
|
2024-07-02 02:48:27 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "Bearer \u003cAdd access token here\u003e",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2024-07-02 02:02:56 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.RequestForInformationRepliesCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-03 05:19:57 +00:00
|
|
|
"/request-for-information-replies/{id}": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one RequestForInformationReplies",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationReplies"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Get one RequestForInformationReplies",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "RequestForInformationReplies ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update RequestForInformationReplies",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationReplies"
|
|
|
|
|
],
|
|
|
|
|
"summary": "update RequestForInformationReplies",
|
|
|
|
|
"parameters": [
|
2024-07-02 02:48:27 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "Bearer \u003cAdd access token here\u003e",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2024-07-02 02:02:56 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.RequestForInformationRepliesUpdateRequest"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "RequestForInformationReplies ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete RequestForInformationReplies",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformationReplies"
|
|
|
|
|
],
|
|
|
|
|
"summary": "delete RequestForInformationReplies",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "RequestForInformationReplies ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/request-for-informations": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all RequestForInformations",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformations"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Get all RequestForInformations",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "createdById",
|
2024-07-02 02:02:56 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "howToGetFiles",
|
2024-07-02 02:02:56 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "howToGetInfo",
|
2024-07-02 02:02:56 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "nextAction",
|
2024-07-02 02:02:56 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "statusId",
|
2024-07-02 02:02:56 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2024-07-02 23:53:25 +00:00
|
|
|
"name": "ticketNumber",
|
2024-07-02 02:02:56 +00:00
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create RequestForInformations",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformations"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Create RequestForInformations",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "Bearer \u003cAdd access token here\u003e",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.RequestForInformationsCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-03 05:19:57 +00:00
|
|
|
"/request-for-informations/{id}": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one RequestForInformations",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformations"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Get one RequestForInformations",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "RequestForInformations ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update RequestForInformations",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformations"
|
|
|
|
|
],
|
|
|
|
|
"summary": "update RequestForInformations",
|
|
|
|
|
"parameters": [
|
2024-07-02 02:48:27 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "Bearer \u003cAdd access token here\u003e",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2024-07-02 02:02:56 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.RequestForInformationsUpdateRequest"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "RequestForInformations ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete RequestForInformations",
|
|
|
|
|
"tags": [
|
|
|
|
|
"RequestForInformations"
|
|
|
|
|
],
|
|
|
|
|
"summary": "delete RequestForInformations",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "RequestForInformations ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
"/user-levels": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all UserLevels",
|
|
|
|
|
"tags": [
|
2024-03-31 11:59:32 +00:00
|
|
|
"UserLevels"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all UserLevels",
|
2024-03-31 11:59:32 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "levelNumber",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "parentLevelId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "provinceId",
|
|
|
|
|
"in": "query"
|
2024-04-28 18:39:43 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
2024-03-31 11:59:32 +00:00
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create UserLevels",
|
|
|
|
|
"tags": [
|
2024-03-31 11:59:32 +00:00
|
|
|
"UserLevels"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create UserLevels",
|
2024-03-31 11:59:32 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.UserLevelsCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/user-levels/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one UserLevels",
|
|
|
|
|
"tags": [
|
2024-03-31 11:59:32 +00:00
|
|
|
"UserLevels"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one UserLevels",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "UserLevels ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update UserLevels",
|
|
|
|
|
"tags": [
|
2024-03-31 11:59:32 +00:00
|
|
|
"UserLevels"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "update UserLevels",
|
|
|
|
|
"parameters": [
|
2024-03-31 11:59:32 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.UserLevelsUpdateRequest"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "UserLevels ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete UserLevels",
|
|
|
|
|
"tags": [
|
2024-03-31 11:59:32 +00:00
|
|
|
"UserLevels"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "delete UserLevels",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "UserLevels ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/user-role-accesses": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all UserRoleAccesses",
|
|
|
|
|
"tags": [
|
2024-04-16 02:08:00 +00:00
|
|
|
"UserRoleAccesses"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all UserRoleAccesses",
|
2024-04-16 02:08:00 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"name": "isActive",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "menuId",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "userRoleId",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create UserRoleAccesses",
|
|
|
|
|
"tags": [
|
2024-04-16 02:08:00 +00:00
|
|
|
"UserRoleAccesses"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create UserRoleAccesses",
|
2024-04-16 02:08:00 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.UserRoleAccessesCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/user-role-accesses/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one UserRoleAccesses",
|
|
|
|
|
"tags": [
|
2024-04-16 02:08:00 +00:00
|
|
|
"UserRoleAccesses"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one UserRoleAccesses",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "UserRoleAccesses ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update UserRoleAccesses",
|
|
|
|
|
"tags": [
|
2024-04-16 02:08:00 +00:00
|
|
|
"UserRoleAccesses"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "update UserRoleAccesses",
|
|
|
|
|
"parameters": [
|
2024-04-16 02:08:00 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.UserRoleAccessesUpdateRequest"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "UserRoleAccesses ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete UserRoleAccesses",
|
|
|
|
|
"tags": [
|
2024-04-16 02:08:00 +00:00
|
|
|
"UserRoleAccesses"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "delete UserRoleAccesses",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "UserRoleAccesses ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-05 09:24:49 +00:00
|
|
|
"/user-role-level-details": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all UserRoleLevelDetails",
|
|
|
|
|
"tags": [
|
|
|
|
|
"Task"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Get all UserRoleLevelDetails",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create UserRoleLevelDetails",
|
|
|
|
|
"tags": [
|
|
|
|
|
"Task"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Create UserRoleLevelDetails",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-03 05:19:57 +00:00
|
|
|
"/user-role-level-details/{id}": {
|
2024-05-05 09:24:49 +00:00
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one UserRoleLevelDetails",
|
|
|
|
|
"tags": [
|
|
|
|
|
"Task"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Get one UserRoleLevelDetails",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "UserRoleLevelDetails ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update UserRoleLevelDetails",
|
|
|
|
|
"tags": [
|
|
|
|
|
"Task"
|
|
|
|
|
],
|
|
|
|
|
"summary": "update UserRoleLevelDetails",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "UserRoleLevelDetails ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete UserRoleLevelDetails",
|
|
|
|
|
"tags": [
|
|
|
|
|
"Task"
|
|
|
|
|
],
|
|
|
|
|
"summary": "delete UserRoleLevelDetails",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "UserRoleLevelDetails ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"description": "Unprocessable Entity",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
"/user-roles": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all UserRoles",
|
|
|
|
|
"tags": [
|
2024-03-31 11:59:32 +00:00
|
|
|
"UserRoles"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all UserRoles",
|
2024-03-31 11:59:32 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "code",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "description",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "statusId",
|
|
|
|
|
"in": "query"
|
2024-04-28 18:39:43 +00:00
|
|
|
},
|
2024-05-12 08:21:52 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "userLevelId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
2024-03-31 11:59:32 +00:00
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create UserRoles",
|
|
|
|
|
"tags": [
|
2024-03-31 11:59:32 +00:00
|
|
|
"UserRoles"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create UserRoles",
|
2024-03-31 11:59:32 +00:00
|
|
|
"parameters": [
|
2024-04-28 18:39:43 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "Bearer \u003cAdd access token here\u003e",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2024-03-31 11:59:32 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.UserRolesCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/user-roles/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting one UserRoles",
|
|
|
|
|
"tags": [
|
2024-03-31 11:59:32 +00:00
|
|
|
"UserRoles"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get one UserRoles",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "UserRoles ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update UserRoles",
|
|
|
|
|
"tags": [
|
2024-03-31 11:59:32 +00:00
|
|
|
"UserRoles"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "update UserRoles",
|
|
|
|
|
"parameters": [
|
2024-03-31 11:59:32 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.UserRolesUpdateRequest"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "UserRoles ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete UserRoles",
|
|
|
|
|
"tags": [
|
2024-03-31 11:59:32 +00:00
|
|
|
"UserRoles"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "delete UserRoles",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "UserRoles ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/users": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for getting all Users",
|
|
|
|
|
"tags": [
|
2024-03-31 11:59:32 +00:00
|
|
|
"Users"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Get all Users",
|
2024-03-31 11:59:32 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "email",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "fullname",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-07-10 17:16:47 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "genderType",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "identityGroup",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "identityGroupNumber",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-03-31 11:59:32 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "identityNumber",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-07-10 17:16:47 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "identityType",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-03-31 11:59:32 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "phoneNumber",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "statusId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "userRoleId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "username",
|
|
|
|
|
"in": "query"
|
2024-04-28 18:39:43 +00:00
|
|
|
},
|
2024-07-10 17:16:47 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "workType",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "count",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "nextPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "page",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "previousPage",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sort",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "sortBy",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalPage",
|
|
|
|
|
"in": "query"
|
2024-03-31 11:59:32 +00:00
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for create Users",
|
|
|
|
|
"tags": [
|
2024-03-31 11:59:32 +00:00
|
|
|
"Users"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "Create Users",
|
2024-03-31 11:59:32 +00:00
|
|
|
"parameters": [
|
2024-04-29 09:46:37 +00:00
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "Bearer \u003cAdd access token here\u003e",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
2024-07-15 02:36:19 +00:00
|
|
|
"in": "header"
|
2024-04-29 09:46:37 +00:00
|
|
|
},
|
2024-03-31 11:59:32 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.UsersCreateRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 19:15:53 +00:00
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-02 17:46:52 +00:00
|
|
|
"/users/detail/{id}": {
|
|
|
|
|
"get": {
|
2024-05-03 18:01:31 +00:00
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-07-02 17:46:52 +00:00
|
|
|
"description": "API for getting one Users",
|
2024-05-03 18:01:31 +00:00
|
|
|
"tags": [
|
|
|
|
|
"Users"
|
|
|
|
|
],
|
2024-07-02 17:46:52 +00:00
|
|
|
"summary": "Get one Users",
|
2024-05-03 18:01:31 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
2024-07-02 17:46:52 +00:00
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Users ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
2024-05-03 18:01:31 +00:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-02 17:46:52 +00:00
|
|
|
"/users/info": {
|
2024-03-05 19:15:53 +00:00
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-07-02 17:46:52 +00:00
|
|
|
"description": "API for ShowUserInfo",
|
2024-03-05 19:15:53 +00:00
|
|
|
"tags": [
|
2024-03-31 11:59:32 +00:00
|
|
|
"Users"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
2024-07-02 17:46:52 +00:00
|
|
|
"summary": "ShowInfo Users",
|
2024-03-05 19:15:53 +00:00
|
|
|
"parameters": [
|
|
|
|
|
{
|
2024-07-02 17:46:52 +00:00
|
|
|
"type": "string",
|
|
|
|
|
"default": "Bearer \u003cAdd access token here\u003e",
|
|
|
|
|
"description": "Insert your access token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
2024-03-05 19:15:53 +00:00
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-07-02 17:46:52 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/users/login": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for Login Users",
|
|
|
|
|
"tags": [
|
|
|
|
|
"Users"
|
|
|
|
|
],
|
|
|
|
|
"summary": "Login Users",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.UserLogin"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/users/{id}": {
|
2024-03-05 19:15:53 +00:00
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for update Users",
|
|
|
|
|
"tags": [
|
2024-03-31 11:59:32 +00:00
|
|
|
"Users"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "update Users",
|
|
|
|
|
"parameters": [
|
2024-03-31 11:59:32 +00:00
|
|
|
{
|
|
|
|
|
"description": "Required payload",
|
|
|
|
|
"name": "payload",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/request.UsersUpdateRequest"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Users ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"Bearer": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "API for delete Users",
|
|
|
|
|
"tags": [
|
2024-03-31 11:59:32 +00:00
|
|
|
"Users"
|
2024-03-05 19:15:53 +00:00
|
|
|
],
|
|
|
|
|
"summary": "delete Users",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "Users ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/response.Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"400": {
|
|
|
|
|
"description": "Bad Request",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.BadRequestError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2024-03-05 19:15:53 +00:00
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.UnauthorizedError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"$ref": "#/definitions/response.InternalServerError"
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"definitions": {
|
2024-03-31 11:59:32 +00:00
|
|
|
"paginator.Pagination": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"count": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"limit": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"nextPage": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"page": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"previousPage": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"sort": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"sortBy": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-03-31 11:59:32 +00:00
|
|
|
"totalPage": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
"request.ArticleCategoriesCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"description",
|
2024-04-16 02:08:00 +00:00
|
|
|
"statusId",
|
2024-03-05 19:15:53 +00:00
|
|
|
"title"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"description": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"parentId": {
|
2024-03-05 19:15:53 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"statusId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"title": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.ArticleCategoriesUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"description",
|
|
|
|
|
"id",
|
2024-05-05 09:24:49 +00:00
|
|
|
"statusId",
|
2024-04-16 02:08:00 +00:00
|
|
|
"title"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
2024-03-05 19:15:53 +00:00
|
|
|
"description": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
2024-03-05 19:15:53 +00:00
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"isPublish": {
|
2024-03-05 19:15:53 +00:00
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"parentId": {
|
2024-03-05 19:15:53 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"publishedAt": {
|
2024-03-05 19:15:53 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"statusId": {
|
2024-03-05 19:15:53 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"title": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-31 23:25:59 +00:00
|
|
|
"request.ArticleFilesUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
2024-04-16 02:08:00 +00:00
|
|
|
"articleId",
|
2024-03-31 23:25:59 +00:00
|
|
|
"id",
|
2024-04-16 02:08:00 +00:00
|
|
|
"isPublish",
|
|
|
|
|
"publishedAt",
|
2024-05-07 17:30:55 +00:00
|
|
|
"statusId"
|
2024-03-31 23:25:59 +00:00
|
|
|
],
|
|
|
|
|
"properties": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"articleId": {
|
2024-03-31 23:25:59 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"fileAlt": {
|
2024-03-31 23:25:59 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"fileName": {
|
2024-03-31 23:25:59 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"filePath": {
|
2024-03-31 23:25:59 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"fileThumbnail": {
|
2024-03-31 23:25:59 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"fileUrl": {
|
2024-03-31 23:25:59 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"heightPixel": {
|
2024-03-31 23:25:59 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"isPublish": {
|
2024-03-31 23:25:59 +00:00
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"publishedAt": {
|
2024-03-31 23:25:59 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"size": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"statusId": {
|
2024-03-31 23:25:59 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"widthPixel": {
|
2024-03-31 23:25:59 +00:00
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-31 15:19:45 +00:00
|
|
|
"request.ArticlesCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
2024-05-05 09:24:49 +00:00
|
|
|
"categoryId",
|
2024-03-31 15:19:45 +00:00
|
|
|
"description",
|
|
|
|
|
"htmlDescription",
|
|
|
|
|
"slug",
|
|
|
|
|
"tags",
|
|
|
|
|
"title",
|
|
|
|
|
"typeId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
2024-05-05 09:24:49 +00:00
|
|
|
"categoryId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-03-31 15:19:45 +00:00
|
|
|
"description": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"htmlDescription": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"slug": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"tags": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"typeId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.ArticlesUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
2024-05-05 09:24:49 +00:00
|
|
|
"categoryId",
|
2024-03-31 15:19:45 +00:00
|
|
|
"description",
|
|
|
|
|
"htmlDescription",
|
|
|
|
|
"slug",
|
|
|
|
|
"tags",
|
|
|
|
|
"title",
|
|
|
|
|
"typeId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
2024-05-05 09:24:49 +00:00
|
|
|
"categoryId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-03-31 15:19:45 +00:00
|
|
|
"description": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"htmlDescription": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"slug": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"statusId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"tags": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"typeId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
"request.CitiesCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"city_name",
|
|
|
|
|
"prov_id"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"city_name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"prov_id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.CitiesUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"city_name",
|
|
|
|
|
"id",
|
|
|
|
|
"prov_id"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"city_name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"prov_id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"request.MasterMenusCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"description",
|
2024-05-12 05:15:13 +00:00
|
|
|
"group",
|
2024-04-29 18:09:11 +00:00
|
|
|
"moduleId",
|
|
|
|
|
"name",
|
|
|
|
|
"statusId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"description": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-05-12 05:15:13 +00:00
|
|
|
"group": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-04-29 18:09:11 +00:00
|
|
|
"icon": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"moduleId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"parentMenuId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"statusId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.MasterModulesCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"description",
|
|
|
|
|
"name",
|
|
|
|
|
"pathUrl",
|
|
|
|
|
"statusId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"description": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"pathUrl": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"statusId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.MasterModulesUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"description",
|
|
|
|
|
"id",
|
|
|
|
|
"name",
|
|
|
|
|
"pathUrl",
|
|
|
|
|
"statusId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"description": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"pathUrl": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"statusId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-05 14:56:19 +00:00
|
|
|
"request.PpidDataApprovalHistoriesCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"approvalStatusId",
|
|
|
|
|
"message",
|
|
|
|
|
"ppidDataId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"approvalAtLevel": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"approvalStatusId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"ppidDataId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"request.PpidDataCategoriesCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"description",
|
|
|
|
|
"slug",
|
|
|
|
|
"title"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"description": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-05-06 18:04:50 +00:00
|
|
|
"parentId": {
|
|
|
|
|
"type": "integer"
|
2024-04-28 18:39:43 +00:00
|
|
|
},
|
2024-05-06 18:04:50 +00:00
|
|
|
"slug": {
|
2024-05-03 13:19:54 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"title": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-28 03:07:38 +00:00
|
|
|
"request.PpidDataCategoriesUpdatePositionPayload": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"positions": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/definitions/request.PpidDataCategoriesUpdatePositionRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.PpidDataCategoriesUpdatePositionRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"id",
|
|
|
|
|
"position"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"position": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"request.PpidDataCategoriesUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"description",
|
|
|
|
|
"id",
|
|
|
|
|
"slug",
|
|
|
|
|
"title"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"description": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-05-06 18:04:50 +00:00
|
|
|
"parentId": {
|
|
|
|
|
"type": "integer"
|
2024-04-28 18:39:43 +00:00
|
|
|
},
|
2024-05-06 18:04:50 +00:00
|
|
|
"slug": {
|
2024-05-03 13:19:54 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"title": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-28 03:07:38 +00:00
|
|
|
"request.PpidDataFilesUpdatePositionPayload": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"positions": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/definitions/request.PpidDataFilesUpdatePositionRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.PpidDataFilesUpdatePositionRequest": {
|
|
|
|
|
"type": "object",
|
2024-05-28 17:21:17 +00:00
|
|
|
"required": [
|
|
|
|
|
"id",
|
|
|
|
|
"position"
|
|
|
|
|
],
|
2024-05-28 03:07:38 +00:00
|
|
|
"properties": {
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"position": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"request.PpidDataFilesUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"id",
|
2024-04-29 17:34:05 +00:00
|
|
|
"ppidDataId"
|
2024-04-28 18:39:43 +00:00
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"createdById": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"filePath": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"fileType": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"isPublish": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"ppidDataId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"publishedAt": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"statusId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"title": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.PpidDatasCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"categoryId",
|
|
|
|
|
"description",
|
2024-04-30 03:53:50 +00:00
|
|
|
"slug",
|
2024-04-28 18:39:43 +00:00
|
|
|
"statusId",
|
|
|
|
|
"title"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"categoryId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"description": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"group": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"levelGroupId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-04-30 03:53:50 +00:00
|
|
|
"slug": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-04-28 18:39:43 +00:00
|
|
|
"statusId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"title": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
2024-05-28 03:07:38 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.PpidDatasUpdatePositionPayload": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"positions": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/definitions/request.PpidDatasUpdatePositionRequest"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.PpidDatasUpdatePositionRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"id",
|
|
|
|
|
"position"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"position": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
2024-07-02 02:02:56 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.RequestForInformationItemsCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
2024-07-15 04:30:12 +00:00
|
|
|
"detailedInfo",
|
2024-07-02 02:02:56 +00:00
|
|
|
"reason",
|
2024-07-02 23:53:25 +00:00
|
|
|
"requestForInformationId",
|
|
|
|
|
"requestedInfo",
|
|
|
|
|
"statusId"
|
2024-07-02 02:02:56 +00:00
|
|
|
],
|
|
|
|
|
"properties": {
|
2024-07-15 04:30:12 +00:00
|
|
|
"detailedInfo": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 02:02:56 +00:00
|
|
|
"reason": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"requestForInformationId": {
|
2024-07-02 02:48:27 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"requestedInfo": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"statusId": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.RequestForInformationItemsUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
2024-07-15 04:30:12 +00:00
|
|
|
"detailedInfo",
|
2024-07-02 02:02:56 +00:00
|
|
|
"id",
|
|
|
|
|
"reason",
|
2024-07-02 23:53:25 +00:00
|
|
|
"requestForInformationId",
|
|
|
|
|
"requestedInfo",
|
|
|
|
|
"statusId"
|
2024-07-02 02:02:56 +00:00
|
|
|
],
|
|
|
|
|
"properties": {
|
2024-07-15 04:30:12 +00:00
|
|
|
"detailedInfo": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 02:02:56 +00:00
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"reason": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"requestForInformationId": {
|
2024-07-02 02:48:27 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"requestedInfo": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"statusId": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-02 03:12:17 +00:00
|
|
|
"request.RequestForInformationObjectionCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
2024-07-02 23:53:25 +00:00
|
|
|
"documentName",
|
|
|
|
|
"mainReason",
|
2024-07-03 02:09:04 +00:00
|
|
|
"requestForInformationItemId",
|
2024-07-02 23:53:25 +00:00
|
|
|
"secondaryReason",
|
|
|
|
|
"statusId"
|
2024-07-02 03:12:17 +00:00
|
|
|
],
|
|
|
|
|
"properties": {
|
2024-07-02 23:53:25 +00:00
|
|
|
"documentName": {
|
2024-07-02 03:12:17 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"mainReason": {
|
2024-07-02 03:12:17 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-03 02:09:04 +00:00
|
|
|
"requestForInformationItemId": {
|
2024-07-02 03:12:17 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"secondaryReason": {
|
2024-07-02 03:12:17 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"statusId": {
|
2024-07-02 03:12:17 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-10 17:16:47 +00:00
|
|
|
"request.RequestForInformationObjectionRepliesCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"createdById",
|
|
|
|
|
"requestForInformationObjectionId",
|
|
|
|
|
"response",
|
|
|
|
|
"statusId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"createdById": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"requestForInformationObjectionId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"response": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"statusId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.RequestForInformationObjectionRepliesUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"id",
|
|
|
|
|
"requestForInformationObjectionId",
|
|
|
|
|
"response",
|
|
|
|
|
"statusId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"requestForInformationObjectionId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"response": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"statusId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"updated_at": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-02 03:12:17 +00:00
|
|
|
"request.RequestForInformationObjectionUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
2024-07-02 23:53:25 +00:00
|
|
|
"documentName",
|
2024-07-02 03:12:17 +00:00
|
|
|
"id",
|
2024-07-02 23:53:25 +00:00
|
|
|
"mainReason",
|
2024-07-03 02:09:04 +00:00
|
|
|
"requestForInformationItemId",
|
2024-07-02 23:53:25 +00:00
|
|
|
"secondaryReason",
|
|
|
|
|
"statusId"
|
2024-07-02 03:12:17 +00:00
|
|
|
],
|
|
|
|
|
"properties": {
|
2024-07-02 23:53:25 +00:00
|
|
|
"documentName": {
|
2024-07-02 03:12:17 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"mainReason": {
|
2024-07-02 03:12:17 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-03 02:09:04 +00:00
|
|
|
"requestForInformationItemId": {
|
2024-07-02 03:12:17 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"secondaryReason": {
|
2024-07-02 03:12:17 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"statusId": {
|
2024-07-02 03:12:17 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-02 02:02:56 +00:00
|
|
|
"request.RequestForInformationRepliesCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
2024-07-02 23:53:25 +00:00
|
|
|
"fileUrl",
|
|
|
|
|
"requestForInformationItemId",
|
2024-07-02 02:02:56 +00:00
|
|
|
"response",
|
2024-07-02 23:53:25 +00:00
|
|
|
"statusId"
|
2024-07-02 02:02:56 +00:00
|
|
|
],
|
|
|
|
|
"properties": {
|
2024-07-02 23:53:25 +00:00
|
|
|
"fileUrl": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"requestForInformationItemId": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"response": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"statusId": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.RequestForInformationRepliesUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
2024-07-02 23:53:25 +00:00
|
|
|
"fileUrl",
|
2024-07-02 02:02:56 +00:00
|
|
|
"id",
|
2024-07-02 23:53:25 +00:00
|
|
|
"requestForInformationItemId",
|
2024-07-02 02:02:56 +00:00
|
|
|
"response",
|
2024-07-02 23:53:25 +00:00
|
|
|
"statusId"
|
2024-07-02 02:02:56 +00:00
|
|
|
],
|
|
|
|
|
"properties": {
|
2024-07-02 23:53:25 +00:00
|
|
|
"fileUrl": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"requestForInformationItemId": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"response": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"statusId": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.RequestForInformationsCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
2024-07-02 23:53:25 +00:00
|
|
|
"howToGetFiles",
|
|
|
|
|
"howToGetInfo",
|
|
|
|
|
"nextAction",
|
|
|
|
|
"statusId",
|
|
|
|
|
"ticketNumber"
|
2024-07-02 02:02:56 +00:00
|
|
|
],
|
|
|
|
|
"properties": {
|
2024-07-02 23:53:25 +00:00
|
|
|
"howToGetFiles": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"howToGetInfo": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"nextAction": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"statusId": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"ticketNumber": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.RequestForInformationsUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
2024-07-02 23:53:25 +00:00
|
|
|
"howToGetFiles",
|
|
|
|
|
"howToGetInfo",
|
2024-07-02 02:02:56 +00:00
|
|
|
"id",
|
2024-07-02 23:53:25 +00:00
|
|
|
"nextAction",
|
|
|
|
|
"statusId",
|
|
|
|
|
"ticketNumber"
|
2024-07-02 02:02:56 +00:00
|
|
|
],
|
|
|
|
|
"properties": {
|
2024-07-02 23:53:25 +00:00
|
|
|
"howToGetFiles": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"howToGetInfo": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"nextAction": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"statusId": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-07-02 23:53:25 +00:00
|
|
|
"ticketNumber": {
|
2024-07-02 02:02:56 +00:00
|
|
|
"type": "string"
|
|
|
|
|
}
|
2024-04-28 18:39:43 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-03-31 11:59:32 +00:00
|
|
|
"request.UserLevelsCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"aliasName",
|
|
|
|
|
"levelNumber",
|
|
|
|
|
"name",
|
|
|
|
|
"parentLevelId",
|
|
|
|
|
"provinceId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"aliasName": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"isActive": {
|
2024-03-31 11:59:32 +00:00
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"levelNumber": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"parentLevelId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"provinceId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.UserLevelsUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"aliasName",
|
|
|
|
|
"levelNumber",
|
|
|
|
|
"name",
|
|
|
|
|
"parentLevelId",
|
|
|
|
|
"provinceId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"aliasName": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"levelNumber": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"parentLevelId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"provinceId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-03 18:01:31 +00:00
|
|
|
"request.UserLogin": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"password": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-05-12 10:09:54 +00:00
|
|
|
"refreshToken": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-05-03 18:01:31 +00:00
|
|
|
"username": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"request.UserRoleAccessesCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"isAdminEnabled",
|
|
|
|
|
"isApprovalEnabled",
|
|
|
|
|
"isDeleteEnabled",
|
|
|
|
|
"isInsertEnabled",
|
|
|
|
|
"isUpdateEnabled",
|
|
|
|
|
"isViewEnabled",
|
2024-05-12 10:09:54 +00:00
|
|
|
"menuId"
|
2024-04-16 02:08:00 +00:00
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"isAdminEnabled": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"isApprovalEnabled": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"isDeleteEnabled": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"isInsertEnabled": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"isUpdateEnabled": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"isViewEnabled": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"menuId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.UserRoleAccessesUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"id",
|
|
|
|
|
"is_admin_enabled",
|
|
|
|
|
"is_approval_enabled",
|
|
|
|
|
"is_delete_enabled",
|
|
|
|
|
"is_insert_enabled",
|
|
|
|
|
"is_update_enabled",
|
|
|
|
|
"is_view_enabled",
|
|
|
|
|
"menu_id",
|
|
|
|
|
"user_role_id"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"is_admin_enabled": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"is_approval_enabled": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"is_delete_enabled": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"is_insert_enabled": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"is_update_enabled": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"is_view_enabled": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"menu_id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"user_role_id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-31 11:59:32 +00:00
|
|
|
"request.UserRolesCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"code",
|
|
|
|
|
"description",
|
2024-04-28 18:39:43 +00:00
|
|
|
"name",
|
2024-05-05 09:24:49 +00:00
|
|
|
"statusId",
|
2024-05-12 10:09:54 +00:00
|
|
|
"userLevelId",
|
|
|
|
|
"userRoleAccess"
|
2024-03-31 11:59:32 +00:00
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"description": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
2024-04-28 18:39:43 +00:00
|
|
|
},
|
|
|
|
|
"statusId": {
|
|
|
|
|
"type": "integer"
|
2024-05-05 09:24:49 +00:00
|
|
|
},
|
2024-05-12 08:21:52 +00:00
|
|
|
"userLevelId": {
|
|
|
|
|
"type": "integer"
|
2024-05-12 10:09:54 +00:00
|
|
|
},
|
|
|
|
|
"userRoleAccess": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/definitions/request.UserRoleAccessesCreateRequest"
|
|
|
|
|
}
|
2024-03-31 11:59:32 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.UserRolesUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"code",
|
|
|
|
|
"description",
|
|
|
|
|
"level_number",
|
2024-04-28 18:39:43 +00:00
|
|
|
"name",
|
2024-05-05 09:24:49 +00:00
|
|
|
"status_id",
|
|
|
|
|
"userLevelIds"
|
2024-03-31 11:59:32 +00:00
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"description": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"level_number": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"status_id": {
|
|
|
|
|
"type": "integer"
|
2024-05-05 09:24:49 +00:00
|
|
|
},
|
|
|
|
|
"userLevelIds": {
|
2024-05-12 08:21:52 +00:00
|
|
|
"type": "integer"
|
2024-03-31 11:59:32 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.UsersCreateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"address",
|
|
|
|
|
"dateOfBirth",
|
|
|
|
|
"email",
|
|
|
|
|
"fullname",
|
|
|
|
|
"genderType",
|
2024-07-10 17:16:47 +00:00
|
|
|
"identityGroup",
|
|
|
|
|
"identityGroupNumber",
|
2024-03-31 11:59:32 +00:00
|
|
|
"identityNumber",
|
|
|
|
|
"identityType",
|
|
|
|
|
"lastEducation",
|
2024-05-03 18:01:31 +00:00
|
|
|
"password",
|
2024-03-31 11:59:32 +00:00
|
|
|
"phoneNumber",
|
2024-04-29 09:46:37 +00:00
|
|
|
"userLevelId",
|
2024-03-31 11:59:32 +00:00
|
|
|
"userRoleId",
|
|
|
|
|
"username",
|
|
|
|
|
"workType"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"address": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"dateOfBirth": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"email": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"fullname": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"genderType": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-10 17:16:47 +00:00
|
|
|
"identityGroup": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"identityGroupNumber": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-03-31 11:59:32 +00:00
|
|
|
"identityNumber": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"identityType": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"lastEducation": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-05-03 18:01:31 +00:00
|
|
|
"password": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-03-31 11:59:32 +00:00
|
|
|
"phoneNumber": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-04-29 09:46:37 +00:00
|
|
|
"userLevelId": {
|
2024-03-31 11:59:32 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"userRoleId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"username": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"workType": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request.UsersUpdateRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"address",
|
|
|
|
|
"dateOfBirth",
|
|
|
|
|
"email",
|
|
|
|
|
"fullname",
|
|
|
|
|
"genderType",
|
2024-07-10 17:16:47 +00:00
|
|
|
"identityGroup",
|
|
|
|
|
"identityGroupNumber",
|
2024-03-31 11:59:32 +00:00
|
|
|
"identityNumber",
|
|
|
|
|
"identityType",
|
|
|
|
|
"lastEducation",
|
|
|
|
|
"phoneNumber",
|
2024-04-29 09:46:37 +00:00
|
|
|
"userLevelId",
|
2024-03-31 11:59:32 +00:00
|
|
|
"userRoleId",
|
|
|
|
|
"username",
|
|
|
|
|
"workType"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"address": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"dateOfBirth": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"email": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"fullname": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"genderType": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-07-10 17:16:47 +00:00
|
|
|
"identityGroup": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"identityGroupNumber": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-03-31 11:59:32 +00:00
|
|
|
"identityNumber": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"identityType": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"lastEducation": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"phoneNumber": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-04-29 09:46:37 +00:00
|
|
|
"statusId": {
|
2024-03-31 11:59:32 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-04-29 09:46:37 +00:00
|
|
|
"userLevelId": {
|
2024-03-31 11:59:32 +00:00
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"userRoleId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"username": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"workType": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-04-16 02:08:00 +00:00
|
|
|
"response.BadRequestError": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 400
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"example": "bad request"
|
|
|
|
|
},
|
|
|
|
|
"success": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"example": false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"response.InternalServerError": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 500
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"example": "internal server error"
|
|
|
|
|
},
|
|
|
|
|
"success": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"example": false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-03-05 19:15:53 +00:00
|
|
|
"response.Response": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"type": "integer",
|
|
|
|
|
"example": 200
|
2024-03-05 19:15:53 +00:00
|
|
|
},
|
|
|
|
|
"data": {},
|
|
|
|
|
"messages": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {}
|
|
|
|
|
},
|
|
|
|
|
"meta": {},
|
|
|
|
|
"success": {
|
2024-04-16 02:08:00 +00:00
|
|
|
"type": "boolean",
|
|
|
|
|
"example": true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"response.UnauthorizedError": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 401
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"example": "unauthorized access"
|
|
|
|
|
},
|
|
|
|
|
"success": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"example": false
|
2024-03-05 19:15:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}`
|
|
|
|
|
|
|
|
|
|
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
|
|
|
|
var SwaggerInfo = &swag.Spec{
|
|
|
|
|
Version: "",
|
|
|
|
|
Host: "",
|
|
|
|
|
BasePath: "",
|
|
|
|
|
Schemes: []string{},
|
|
|
|
|
Title: "",
|
|
|
|
|
Description: "",
|
|
|
|
|
InfoInstanceName: "swagger",
|
|
|
|
|
SwaggerTemplate: docTemplate,
|
|
|
|
|
LeftDelim: "{{",
|
|
|
|
|
RightDelim: "}}",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
|
|
|
|
|
}
|