4018 lines
100 KiB
YAML
4018 lines
100 KiB
YAML
definitions:
|
|
paginator.Pagination:
|
|
properties:
|
|
count:
|
|
type: integer
|
|
limit:
|
|
type: integer
|
|
nextPage:
|
|
type: integer
|
|
page:
|
|
type: integer
|
|
previousPage:
|
|
type: integer
|
|
sort:
|
|
type: string
|
|
sortBy:
|
|
type: string
|
|
totalPage:
|
|
type: integer
|
|
type: object
|
|
request.ArticleCategoriesCreateRequest:
|
|
properties:
|
|
description:
|
|
type: string
|
|
isEnabled:
|
|
type: boolean
|
|
parentId:
|
|
type: integer
|
|
statusId:
|
|
type: integer
|
|
title:
|
|
type: string
|
|
required:
|
|
- description
|
|
- isEnabled
|
|
- parentId
|
|
- statusId
|
|
- title
|
|
type: object
|
|
request.ArticleCategoriesUpdateRequest:
|
|
properties:
|
|
description:
|
|
type: string
|
|
id:
|
|
type: integer
|
|
isEnabled:
|
|
type: boolean
|
|
isPublish:
|
|
type: boolean
|
|
parentId:
|
|
type: integer
|
|
publishedAt:
|
|
type: string
|
|
statusId:
|
|
type: integer
|
|
thumbnailPath:
|
|
type: string
|
|
thumbnailUrl:
|
|
type: string
|
|
title:
|
|
type: string
|
|
required:
|
|
- description
|
|
- id
|
|
- parentId
|
|
- thumbnailPath
|
|
- thumbnailUrl
|
|
- title
|
|
type: object
|
|
request.ArticleFilesUpdateRequest:
|
|
properties:
|
|
articleId:
|
|
type: integer
|
|
createdById:
|
|
type: integer
|
|
downloadCount:
|
|
type: integer
|
|
fileAlt:
|
|
type: string
|
|
fileName:
|
|
type: string
|
|
filePath:
|
|
type: string
|
|
fileThumbnail:
|
|
type: string
|
|
fileUrl:
|
|
type: string
|
|
heightPixel:
|
|
type: string
|
|
id:
|
|
type: integer
|
|
isPublish:
|
|
type: boolean
|
|
publishedAt:
|
|
type: string
|
|
size:
|
|
type: string
|
|
statusId:
|
|
type: integer
|
|
widthPixel:
|
|
type: string
|
|
required:
|
|
- articleId
|
|
- createdById
|
|
- downloadCount
|
|
- fileAlt
|
|
- fileName
|
|
- filePath
|
|
- fileThumbnail
|
|
- fileUrl
|
|
- heightPixel
|
|
- id
|
|
- isPublish
|
|
- publishedAt
|
|
- size
|
|
- statusId
|
|
- widthPixel
|
|
type: object
|
|
request.ArticlesCreateRequest:
|
|
properties:
|
|
description:
|
|
type: string
|
|
htmlDescription:
|
|
type: string
|
|
slug:
|
|
type: string
|
|
tags:
|
|
type: string
|
|
title:
|
|
type: string
|
|
typeId:
|
|
type: integer
|
|
required:
|
|
- description
|
|
- htmlDescription
|
|
- slug
|
|
- tags
|
|
- title
|
|
- typeId
|
|
type: object
|
|
request.ArticlesUpdateRequest:
|
|
properties:
|
|
description:
|
|
type: string
|
|
htmlDescription:
|
|
type: string
|
|
slug:
|
|
type: string
|
|
statusId:
|
|
type: integer
|
|
tags:
|
|
type: string
|
|
title:
|
|
type: string
|
|
typeId:
|
|
type: integer
|
|
required:
|
|
- description
|
|
- htmlDescription
|
|
- slug
|
|
- tags
|
|
- title
|
|
- typeId
|
|
type: object
|
|
request.CitiesCreateRequest:
|
|
properties:
|
|
city_name:
|
|
type: string
|
|
prov_id:
|
|
type: integer
|
|
required:
|
|
- city_name
|
|
- prov_id
|
|
type: object
|
|
request.CitiesUpdateRequest:
|
|
properties:
|
|
city_name:
|
|
type: string
|
|
id:
|
|
type: integer
|
|
prov_id:
|
|
type: integer
|
|
required:
|
|
- city_name
|
|
- id
|
|
- prov_id
|
|
type: object
|
|
request.PpidDataCategoriesCreateRequest:
|
|
properties:
|
|
description:
|
|
type: string
|
|
slug:
|
|
type: string
|
|
title:
|
|
type: string
|
|
required:
|
|
- description
|
|
- slug
|
|
- title
|
|
type: object
|
|
request.PpidDataCategoriesUpdateRequest:
|
|
properties:
|
|
description:
|
|
type: string
|
|
id:
|
|
type: integer
|
|
slug:
|
|
type: string
|
|
title:
|
|
type: string
|
|
required:
|
|
- description
|
|
- id
|
|
- slug
|
|
- title
|
|
type: object
|
|
request.PpidDataFilesUpdateRequest:
|
|
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
|
|
required:
|
|
- id
|
|
- ppidDataId
|
|
type: object
|
|
request.PpidDatasCreateRequest:
|
|
properties:
|
|
categoryId:
|
|
type: integer
|
|
createdById:
|
|
type: integer
|
|
description:
|
|
type: string
|
|
group:
|
|
type: string
|
|
levelGroupId:
|
|
type: integer
|
|
statusId:
|
|
type: integer
|
|
title:
|
|
type: string
|
|
required:
|
|
- categoryId
|
|
- description
|
|
- statusId
|
|
- title
|
|
type: object
|
|
request.UserLevelsCreateRequest:
|
|
properties:
|
|
aliasName:
|
|
type: string
|
|
isActive:
|
|
type: boolean
|
|
levelNumber:
|
|
type: integer
|
|
name:
|
|
type: string
|
|
parentLevelId:
|
|
type: integer
|
|
provinceId:
|
|
type: integer
|
|
required:
|
|
- aliasName
|
|
- levelNumber
|
|
- name
|
|
- parentLevelId
|
|
- provinceId
|
|
type: object
|
|
request.UserLevelsUpdateRequest:
|
|
properties:
|
|
aliasName:
|
|
type: string
|
|
levelNumber:
|
|
type: integer
|
|
name:
|
|
type: string
|
|
parentLevelId:
|
|
type: integer
|
|
provinceId:
|
|
type: integer
|
|
required:
|
|
- aliasName
|
|
- levelNumber
|
|
- name
|
|
- parentLevelId
|
|
- provinceId
|
|
type: object
|
|
request.UserRoleAccessesCreateRequest:
|
|
properties:
|
|
isAdminEnabled:
|
|
type: boolean
|
|
isApprovalEnabled:
|
|
type: boolean
|
|
isDeleteEnabled:
|
|
type: boolean
|
|
isInsertEnabled:
|
|
type: boolean
|
|
isUpdateEnabled:
|
|
type: boolean
|
|
isViewEnabled:
|
|
type: boolean
|
|
menuId:
|
|
type: integer
|
|
userRoleId:
|
|
type: integer
|
|
required:
|
|
- isAdminEnabled
|
|
- isApprovalEnabled
|
|
- isDeleteEnabled
|
|
- isInsertEnabled
|
|
- isUpdateEnabled
|
|
- isViewEnabled
|
|
- menuId
|
|
- userRoleId
|
|
type: object
|
|
request.UserRoleAccessesUpdateRequest:
|
|
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
|
|
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
|
|
type: object
|
|
request.UserRolesCreateRequest:
|
|
properties:
|
|
code:
|
|
type: string
|
|
description:
|
|
type: string
|
|
levelNumber:
|
|
type: integer
|
|
name:
|
|
type: string
|
|
statusId:
|
|
type: integer
|
|
required:
|
|
- code
|
|
- description
|
|
- levelNumber
|
|
- name
|
|
- statusId
|
|
type: object
|
|
request.UserRolesUpdateRequest:
|
|
properties:
|
|
code:
|
|
type: string
|
|
description:
|
|
type: string
|
|
level_number:
|
|
type: integer
|
|
name:
|
|
type: string
|
|
status_id:
|
|
type: integer
|
|
required:
|
|
- code
|
|
- description
|
|
- level_number
|
|
- name
|
|
- status_id
|
|
type: object
|
|
request.UsersCreateRequest:
|
|
properties:
|
|
address:
|
|
type: string
|
|
dateOfBirth:
|
|
type: string
|
|
email:
|
|
type: string
|
|
fullname:
|
|
type: string
|
|
genderType:
|
|
type: string
|
|
identityNumber:
|
|
type: string
|
|
identityType:
|
|
type: string
|
|
lastEducation:
|
|
type: string
|
|
phoneNumber:
|
|
type: string
|
|
userLevelId:
|
|
type: integer
|
|
userRoleId:
|
|
type: integer
|
|
username:
|
|
type: string
|
|
workType:
|
|
type: string
|
|
required:
|
|
- address
|
|
- dateOfBirth
|
|
- email
|
|
- fullname
|
|
- genderType
|
|
- identityNumber
|
|
- identityType
|
|
- lastEducation
|
|
- phoneNumber
|
|
- userLevelId
|
|
- userRoleId
|
|
- username
|
|
- workType
|
|
type: object
|
|
request.UsersUpdateRequest:
|
|
properties:
|
|
address:
|
|
type: string
|
|
dateOfBirth:
|
|
type: string
|
|
email:
|
|
type: string
|
|
fullname:
|
|
type: string
|
|
genderType:
|
|
type: string
|
|
identityNumber:
|
|
type: string
|
|
identityType:
|
|
type: string
|
|
lastEducation:
|
|
type: string
|
|
phoneNumber:
|
|
type: string
|
|
statusId:
|
|
type: integer
|
|
userLevelId:
|
|
type: integer
|
|
userRoleId:
|
|
type: integer
|
|
username:
|
|
type: string
|
|
workType:
|
|
type: string
|
|
required:
|
|
- address
|
|
- dateOfBirth
|
|
- email
|
|
- fullname
|
|
- genderType
|
|
- identityNumber
|
|
- identityType
|
|
- lastEducation
|
|
- phoneNumber
|
|
- userLevelId
|
|
- userRoleId
|
|
- username
|
|
- workType
|
|
type: object
|
|
response.BadRequestError:
|
|
properties:
|
|
code:
|
|
example: 400
|
|
type: integer
|
|
message:
|
|
example: bad request
|
|
type: string
|
|
success:
|
|
example: false
|
|
type: boolean
|
|
type: object
|
|
response.InternalServerError:
|
|
properties:
|
|
code:
|
|
example: 500
|
|
type: integer
|
|
message:
|
|
example: internal server error
|
|
type: string
|
|
success:
|
|
example: false
|
|
type: boolean
|
|
type: object
|
|
response.Response:
|
|
properties:
|
|
code:
|
|
example: 200
|
|
type: integer
|
|
data: {}
|
|
messages:
|
|
items: {}
|
|
type: array
|
|
meta: {}
|
|
success:
|
|
example: true
|
|
type: boolean
|
|
type: object
|
|
response.UnauthorizedError:
|
|
properties:
|
|
code:
|
|
example: 401
|
|
type: integer
|
|
message:
|
|
example: unauthorized access
|
|
type: string
|
|
success:
|
|
example: false
|
|
type: boolean
|
|
type: object
|
|
info:
|
|
contact: {}
|
|
paths:
|
|
/article-categories:
|
|
get:
|
|
description: API for getting all ArticleCategories
|
|
parameters:
|
|
- in: query
|
|
name: createdById
|
|
type: integer
|
|
- in: query
|
|
name: description
|
|
type: string
|
|
- in: query
|
|
name: isEnabled
|
|
type: boolean
|
|
- in: query
|
|
name: isPublish
|
|
type: boolean
|
|
- in: query
|
|
name: parentId
|
|
type: integer
|
|
- in: query
|
|
name: statusId
|
|
type: integer
|
|
- in: query
|
|
name: title
|
|
type: string
|
|
- in: query
|
|
name: count
|
|
type: integer
|
|
- in: query
|
|
name: limit
|
|
type: integer
|
|
- in: query
|
|
name: nextPage
|
|
type: integer
|
|
- in: query
|
|
name: page
|
|
type: integer
|
|
- in: query
|
|
name: previousPage
|
|
type: integer
|
|
- in: query
|
|
name: sort
|
|
type: string
|
|
- in: query
|
|
name: sortBy
|
|
type: string
|
|
- in: query
|
|
name: totalPage
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all ArticleCategories
|
|
tags:
|
|
- ArticleCategories
|
|
post:
|
|
description: API for create ArticleCategories
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.ArticleCategoriesCreateRequest'
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create ArticleCategories
|
|
tags:
|
|
- ArticleCategories
|
|
/article-categories/{id}:
|
|
delete:
|
|
description: API for delete ArticleCategories
|
|
parameters:
|
|
- description: ArticleCategories ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete ArticleCategories
|
|
tags:
|
|
- ArticleCategories
|
|
get:
|
|
description: API for getting one ArticleCategories
|
|
parameters:
|
|
- description: ArticleCategories ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one ArticleCategories
|
|
tags:
|
|
- ArticleCategories
|
|
put:
|
|
description: API for update ArticleCategories
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.ArticleCategoriesUpdateRequest'
|
|
- description: ArticleCategories ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: update ArticleCategories
|
|
tags:
|
|
- ArticleCategories
|
|
/article-category-details:
|
|
get:
|
|
description: API for getting 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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all ArticleCategoryDetails
|
|
tags:
|
|
- Task
|
|
post:
|
|
description: API for 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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create ArticleCategoryDetails
|
|
tags:
|
|
- Task
|
|
/article-category-details/{id}:
|
|
delete:
|
|
description: API for delete ArticleCategoryDetails
|
|
parameters:
|
|
- description: ArticleCategoryDetails ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete ArticleCategoryDetails
|
|
tags:
|
|
- Task
|
|
get:
|
|
description: API for getting one ArticleCategoryDetails
|
|
parameters:
|
|
- description: ArticleCategoryDetails ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one ArticleCategoryDetails
|
|
tags:
|
|
- Task
|
|
put:
|
|
description: API for update ArticleCategoryDetails
|
|
parameters:
|
|
- description: ArticleCategoryDetails ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: update ArticleCategoryDetails
|
|
tags:
|
|
- Task
|
|
/article-files:
|
|
get:
|
|
description: API for getting all ArticleFiles
|
|
parameters:
|
|
- in: query
|
|
name: articleId
|
|
type: integer
|
|
- in: query
|
|
name: fileName
|
|
type: string
|
|
- in: query
|
|
name: isPublish
|
|
type: boolean
|
|
- in: query
|
|
name: statusId
|
|
type: integer
|
|
- in: query
|
|
name: count
|
|
type: integer
|
|
- in: query
|
|
name: limit
|
|
type: integer
|
|
- in: query
|
|
name: nextPage
|
|
type: integer
|
|
- in: query
|
|
name: page
|
|
type: integer
|
|
- in: query
|
|
name: previousPage
|
|
type: integer
|
|
- in: query
|
|
name: sort
|
|
type: string
|
|
- in: query
|
|
name: sortBy
|
|
type: string
|
|
- in: query
|
|
name: totalPage
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all ArticleFiles
|
|
tags:
|
|
- ArticleFiles
|
|
/article-files/{articleId}:
|
|
post:
|
|
description: API for create ArticleFiles
|
|
parameters:
|
|
- description: Upload file
|
|
in: formData
|
|
name: files
|
|
required: true
|
|
type: file
|
|
- description: Article ID
|
|
in: path
|
|
name: articleId
|
|
required: true
|
|
type: integer
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Upload ArticleFiles
|
|
tags:
|
|
- ArticleFiles
|
|
/article-files/{id}:
|
|
delete:
|
|
description: API for delete ArticleFiles
|
|
parameters:
|
|
- description: ArticleFiles ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete ArticleFiles
|
|
tags:
|
|
- ArticleFiles
|
|
get:
|
|
description: API for getting one ArticleFiles
|
|
parameters:
|
|
- description: ArticleFiles ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one ArticleFiles
|
|
tags:
|
|
- ArticleFiles
|
|
put:
|
|
description: API for update ArticleFiles
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.ArticleFilesUpdateRequest'
|
|
- description: ArticleFiles ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: update ArticleFiles
|
|
tags:
|
|
- ArticleFiles
|
|
/article-files/viewer/{id}:
|
|
get:
|
|
description: API for create ArticleFiles
|
|
parameters:
|
|
- description: Article File ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: string
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create ArticleFiles
|
|
tags:
|
|
- ArticleFiles
|
|
/articles:
|
|
get:
|
|
description: API for getting all Articles
|
|
parameters:
|
|
- in: query
|
|
name: createdById
|
|
type: integer
|
|
- in: query
|
|
name: description
|
|
type: string
|
|
- in: query
|
|
name: isPublish
|
|
type: boolean
|
|
- in: query
|
|
name: statusId
|
|
type: integer
|
|
- in: query
|
|
name: tags
|
|
type: string
|
|
- in: query
|
|
name: title
|
|
type: string
|
|
- in: query
|
|
name: typeId
|
|
type: integer
|
|
- in: query
|
|
name: count
|
|
type: integer
|
|
- in: query
|
|
name: limit
|
|
type: integer
|
|
- in: query
|
|
name: nextPage
|
|
type: integer
|
|
- in: query
|
|
name: page
|
|
type: integer
|
|
- in: query
|
|
name: previousPage
|
|
type: integer
|
|
- in: query
|
|
name: sort
|
|
type: string
|
|
- in: query
|
|
name: sortBy
|
|
type: string
|
|
- in: query
|
|
name: totalPage
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all Articles
|
|
tags:
|
|
- Articles
|
|
post:
|
|
description: API for create Articles
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.ArticlesCreateRequest'
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create Articles
|
|
tags:
|
|
- Articles
|
|
/articles/{id}:
|
|
delete:
|
|
description: API for delete Articles
|
|
parameters:
|
|
- description: Articles ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete Articles
|
|
tags:
|
|
- Articles
|
|
get:
|
|
description: API for getting one Articles
|
|
parameters:
|
|
- description: Articles ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one Articles
|
|
tags:
|
|
- Articles
|
|
put:
|
|
description: API for update Articles
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.ArticlesUpdateRequest'
|
|
- description: Articles ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: update Articles
|
|
tags:
|
|
- Articles
|
|
/cities:
|
|
get:
|
|
description: API for getting 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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all Cities
|
|
tags:
|
|
- Task
|
|
post:
|
|
description: API for create Cities
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create Cities
|
|
tags:
|
|
- Task
|
|
/cities/{id}:
|
|
delete:
|
|
description: API for delete Cities
|
|
parameters:
|
|
- description: Cities ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete Cities
|
|
tags:
|
|
- Task
|
|
get:
|
|
description: API for getting one Cities
|
|
parameters:
|
|
- description: Cities ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one Cities
|
|
tags:
|
|
- Task
|
|
put:
|
|
consumes:
|
|
- application/json
|
|
description: API for update Cities
|
|
parameters:
|
|
- description: Cities ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.CitiesUpdateRequest'
|
|
produces:
|
|
- application/json
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: update Cities
|
|
tags:
|
|
- Task
|
|
/districts:
|
|
get:
|
|
description: API for getting 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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all Districts
|
|
tags:
|
|
- Task
|
|
post:
|
|
description: API for 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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create Districts
|
|
tags:
|
|
- Task
|
|
/districts/{id}:
|
|
delete:
|
|
description: API for delete Districts
|
|
parameters:
|
|
- description: Districts ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete Districts
|
|
tags:
|
|
- Task
|
|
get:
|
|
description: API for getting one Districts
|
|
parameters:
|
|
- description: Districts ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one Districts
|
|
tags:
|
|
- Task
|
|
put:
|
|
description: API for update Districts
|
|
parameters:
|
|
- description: Districts ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: update Districts
|
|
tags:
|
|
- Task
|
|
/magazine-files:
|
|
get:
|
|
description: API for getting 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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all MagazineFiles
|
|
tags:
|
|
- Task
|
|
post:
|
|
description: API for 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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create MagazineFiles
|
|
tags:
|
|
- Task
|
|
/magazine-files/{id}:
|
|
delete:
|
|
description: API for delete MagazineFiles
|
|
parameters:
|
|
- description: MagazineFiles ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete MagazineFiles
|
|
tags:
|
|
- Task
|
|
get:
|
|
description: API for getting one MagazineFiles
|
|
parameters:
|
|
- description: MagazineFiles ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one MagazineFiles
|
|
tags:
|
|
- Task
|
|
put:
|
|
description: API for update MagazineFiles
|
|
parameters:
|
|
- description: MagazineFiles ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: update MagazineFiles
|
|
tags:
|
|
- Task
|
|
/magazines:
|
|
get:
|
|
description: API for getting 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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all Magazines
|
|
tags:
|
|
- Task
|
|
post:
|
|
description: API for 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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create Magazines
|
|
tags:
|
|
- Task
|
|
/magazines/{id}:
|
|
delete:
|
|
description: API for delete Magazines
|
|
parameters:
|
|
- description: Magazines ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete Magazines
|
|
tags:
|
|
- Task
|
|
get:
|
|
description: API for getting one Magazines
|
|
parameters:
|
|
- description: Magazines ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one Magazines
|
|
tags:
|
|
- Task
|
|
put:
|
|
description: API for update Magazines
|
|
parameters:
|
|
- description: Magazines ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: update Magazines
|
|
tags:
|
|
- Task
|
|
/master-menus:
|
|
get:
|
|
description: API for getting all MasterMenus
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all MasterMenus
|
|
tags:
|
|
- Task
|
|
post:
|
|
description: API for create MasterMenus
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create MasterMenus
|
|
tags:
|
|
- Task
|
|
/master-menus/{id}:
|
|
delete:
|
|
description: API for delete MasterMenus
|
|
parameters:
|
|
- description: MasterMenus ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete MasterMenus
|
|
tags:
|
|
- Task
|
|
get:
|
|
description: API for getting one MasterMenus
|
|
parameters:
|
|
- description: MasterMenus ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one MasterMenus
|
|
tags:
|
|
- Task
|
|
put:
|
|
description: API for update MasterMenus
|
|
parameters:
|
|
- description: MasterMenus ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: update MasterMenus
|
|
tags:
|
|
- Task
|
|
/master-modules:
|
|
get:
|
|
description: API for getting all MasterModules
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all MasterModules
|
|
tags:
|
|
- Task
|
|
post:
|
|
description: API for create MasterModules
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create MasterModules
|
|
tags:
|
|
- Task
|
|
/master-modules/{id}:
|
|
delete:
|
|
description: API for delete MasterModules
|
|
parameters:
|
|
- description: MasterModules ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete MasterModules
|
|
tags:
|
|
- Task
|
|
get:
|
|
description: API for getting one MasterModules
|
|
parameters:
|
|
- description: MasterModules ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one MasterModules
|
|
tags:
|
|
- Task
|
|
put:
|
|
description: API for update MasterModules
|
|
parameters:
|
|
- description: MasterModules ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: update MasterModules
|
|
tags:
|
|
- Task
|
|
/master-statuses:
|
|
get:
|
|
description: API for getting 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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all MasterStatuses
|
|
tags:
|
|
- Task
|
|
post:
|
|
description: API for 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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create MasterStatuses
|
|
tags:
|
|
- Task
|
|
/master-statuses/{id}:
|
|
delete:
|
|
description: API for delete MasterStatuses
|
|
parameters:
|
|
- description: MasterStatuses ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete MasterStatuses
|
|
tags:
|
|
- Task
|
|
get:
|
|
description: API for getting one MasterStatuses
|
|
parameters:
|
|
- description: MasterStatuses ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one MasterStatuses
|
|
tags:
|
|
- Task
|
|
put:
|
|
description: API for update MasterStatuses
|
|
parameters:
|
|
- description: MasterStatuses ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: update MasterStatuses
|
|
tags:
|
|
- Task
|
|
/ppid-data-categories:
|
|
get:
|
|
description: API for getting all PpidDataCategories
|
|
parameters:
|
|
- in: query
|
|
name: description
|
|
type: string
|
|
- in: query
|
|
name: title
|
|
type: string
|
|
- in: query
|
|
name: count
|
|
type: integer
|
|
- in: query
|
|
name: limit
|
|
type: integer
|
|
- in: query
|
|
name: nextPage
|
|
type: integer
|
|
- in: query
|
|
name: page
|
|
type: integer
|
|
- in: query
|
|
name: previousPage
|
|
type: integer
|
|
- in: query
|
|
name: sort
|
|
type: string
|
|
- in: query
|
|
name: sortBy
|
|
type: string
|
|
- in: query
|
|
name: totalPage
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all PpidDataCategories
|
|
tags:
|
|
- PPID Categories
|
|
post:
|
|
description: API for create PpidDataCategories
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.PpidDataCategoriesCreateRequest'
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create PpidDataCategories
|
|
tags:
|
|
- PPID Categories
|
|
/ppid-data-categories/{id}:
|
|
delete:
|
|
description: API for delete PpidDataCategories
|
|
parameters:
|
|
- description: PpidDataCategories ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete PpidDataCategories
|
|
tags:
|
|
- PPID Categories
|
|
get:
|
|
description: API for getting one PpidDataCategories
|
|
parameters:
|
|
- description: PpidDataCategories ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one PpidDataCategories
|
|
tags:
|
|
- PPID Categories
|
|
put:
|
|
description: API for update PpidDataCategories
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.PpidDataCategoriesUpdateRequest'
|
|
- description: PpidDataCategories ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: update PpidDataCategories
|
|
tags:
|
|
- PPID Categories
|
|
/ppid-data-files:
|
|
get:
|
|
description: API for getting all PpidDataFiles
|
|
parameters:
|
|
- in: query
|
|
name: description
|
|
type: string
|
|
- in: query
|
|
name: fileType
|
|
type: string
|
|
- in: query
|
|
name: isPublish
|
|
type: boolean
|
|
- in: query
|
|
name: ppidDataId
|
|
type: integer
|
|
- in: query
|
|
name: statusId
|
|
type: integer
|
|
- in: query
|
|
name: title
|
|
type: string
|
|
- in: query
|
|
name: unit
|
|
type: string
|
|
- in: query
|
|
name: count
|
|
type: integer
|
|
- in: query
|
|
name: limit
|
|
type: integer
|
|
- in: query
|
|
name: nextPage
|
|
type: integer
|
|
- in: query
|
|
name: page
|
|
type: integer
|
|
- in: query
|
|
name: previousPage
|
|
type: integer
|
|
- in: query
|
|
name: sort
|
|
type: string
|
|
- in: query
|
|
name: sortBy
|
|
type: string
|
|
- in: query
|
|
name: totalPage
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all PpidDataFiles
|
|
tags:
|
|
- PPID Files
|
|
/ppid-data-files/{id}:
|
|
delete:
|
|
description: API for delete PpidDataFiles
|
|
parameters:
|
|
- description: PpidDataFiles ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete PpidDataFiles
|
|
tags:
|
|
- PPID Files
|
|
get:
|
|
description: API for getting one PpidDataFiles
|
|
parameters:
|
|
- description: PpidDataFiles ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one PpidDataFiles
|
|
tags:
|
|
- PPID Files
|
|
put:
|
|
description: API for update PpidDataFiles
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.PpidDataFilesUpdateRequest'
|
|
- description: Ppid Data ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: update PpidDataFiles
|
|
tags:
|
|
- PPID Files
|
|
/ppid-data-files/{ppidDataId}:
|
|
post:
|
|
description: API for create PpidDataFiles
|
|
parameters:
|
|
- description: Upload file
|
|
in: formData
|
|
name: files
|
|
required: true
|
|
type: file
|
|
- description: Ppid Data ID
|
|
in: path
|
|
name: ppidDataId
|
|
required: true
|
|
type: integer
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create PpidDataFiles
|
|
tags:
|
|
- PPID Files
|
|
/ppid-data-files/viewer/{filename}:
|
|
get:
|
|
description: API for create PpidDataFiles
|
|
parameters:
|
|
- description: Ppid Data Filename
|
|
in: path
|
|
name: filename
|
|
required: true
|
|
type: string
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create PpidDataFiles
|
|
tags:
|
|
- PPID Files
|
|
/ppid-datas:
|
|
get:
|
|
description: API for getting all PpidDatas
|
|
parameters:
|
|
- in: query
|
|
name: categoryId
|
|
type: integer
|
|
- in: query
|
|
name: createdById
|
|
type: integer
|
|
- in: query
|
|
name: description
|
|
type: string
|
|
- in: query
|
|
name: group
|
|
type: string
|
|
- in: query
|
|
name: isPublish
|
|
type: boolean
|
|
- in: query
|
|
name: levelGroupId
|
|
type: integer
|
|
- in: query
|
|
name: statusId
|
|
type: integer
|
|
- in: query
|
|
name: title
|
|
type: string
|
|
- in: query
|
|
name: count
|
|
type: integer
|
|
- in: query
|
|
name: limit
|
|
type: integer
|
|
- in: query
|
|
name: nextPage
|
|
type: integer
|
|
- in: query
|
|
name: page
|
|
type: integer
|
|
- in: query
|
|
name: previousPage
|
|
type: integer
|
|
- in: query
|
|
name: sort
|
|
type: string
|
|
- in: query
|
|
name: sortBy
|
|
type: string
|
|
- in: query
|
|
name: totalPage
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all PpidDatas
|
|
tags:
|
|
- PPID Data
|
|
post:
|
|
description: API for create PpidDatas
|
|
parameters:
|
|
- default: Bearer <Add access token here>
|
|
description: Insert your access token
|
|
in: header
|
|
name: Authorization
|
|
required: true
|
|
type: string
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.PpidDatasCreateRequest'
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create PpidDatas
|
|
tags:
|
|
- PPID Data
|
|
/ppid-datas/{id}:
|
|
delete:
|
|
description: API for delete PpidDatas
|
|
parameters:
|
|
- description: PpidDatas ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete PpidDatas
|
|
tags:
|
|
- PPID Data
|
|
get:
|
|
description: API for getting one PpidDatas
|
|
parameters:
|
|
- description: PpidDatas ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one PpidDatas
|
|
tags:
|
|
- PPID Data
|
|
put:
|
|
description: API for update PpidDatas
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.PpidDatasCreateRequest'
|
|
- description: PpidDatas ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: update PpidDatas
|
|
tags:
|
|
- PPID Data
|
|
/provinces:
|
|
get:
|
|
description: API for getting 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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all Provinces
|
|
tags:
|
|
- Task
|
|
post:
|
|
description: API for 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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create Provinces
|
|
tags:
|
|
- Task
|
|
/provinces/{id}:
|
|
delete:
|
|
description: API for delete Provinces
|
|
parameters:
|
|
- description: Provinces ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete Provinces
|
|
tags:
|
|
- Task
|
|
get:
|
|
description: API for getting one Provinces
|
|
parameters:
|
|
- description: Provinces ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one Provinces
|
|
tags:
|
|
- Task
|
|
put:
|
|
description: API for update Provinces
|
|
parameters:
|
|
- description: Provinces ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: update Provinces
|
|
tags:
|
|
- Task
|
|
/user-levels:
|
|
get:
|
|
description: API for getting all UserLevels
|
|
parameters:
|
|
- in: query
|
|
name: levelNumber
|
|
type: integer
|
|
- in: query
|
|
name: name
|
|
type: string
|
|
- in: query
|
|
name: parentLevelId
|
|
type: integer
|
|
- in: query
|
|
name: provinceId
|
|
type: integer
|
|
- in: query
|
|
name: count
|
|
type: integer
|
|
- in: query
|
|
name: limit
|
|
type: integer
|
|
- in: query
|
|
name: nextPage
|
|
type: integer
|
|
- in: query
|
|
name: page
|
|
type: integer
|
|
- in: query
|
|
name: previousPage
|
|
type: integer
|
|
- in: query
|
|
name: sort
|
|
type: string
|
|
- in: query
|
|
name: sortBy
|
|
type: string
|
|
- in: query
|
|
name: totalPage
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all UserLevels
|
|
tags:
|
|
- UserLevels
|
|
post:
|
|
description: API for create UserLevels
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.UserLevelsCreateRequest'
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create UserLevels
|
|
tags:
|
|
- UserLevels
|
|
/user-levels/{id}:
|
|
delete:
|
|
description: API for delete UserLevels
|
|
parameters:
|
|
- description: UserLevels ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
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'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete UserLevels
|
|
tags:
|
|
- UserLevels
|
|
get:
|
|
description: API for getting one UserLevels
|
|
parameters:
|
|
- description: UserLevels ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one UserLevels
|
|
tags:
|
|
- UserLevels
|
|
put:
|
|
description: API for update UserLevels
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.UserLevelsUpdateRequest'
|
|
- description: UserLevels ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: update UserLevels
|
|
tags:
|
|
- UserLevels
|
|
/user-role-accesses:
|
|
get:
|
|
description: API for getting all UserRoleAccesses
|
|
parameters:
|
|
- in: query
|
|
name: isActive
|
|
required: true
|
|
type: boolean
|
|
- in: query
|
|
name: menuId
|
|
required: true
|
|
type: integer
|
|
- in: query
|
|
name: userRoleId
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all UserRoleAccesses
|
|
tags:
|
|
- UserRoleAccesses
|
|
post:
|
|
description: API for create UserRoleAccesses
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.UserRoleAccessesCreateRequest'
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create UserRoleAccesses
|
|
tags:
|
|
- UserRoleAccesses
|
|
/user-role-accesses/{id}:
|
|
delete:
|
|
description: API for delete UserRoleAccesses
|
|
parameters:
|
|
- description: UserRoleAccesses ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete UserRoleAccesses
|
|
tags:
|
|
- UserRoleAccesses
|
|
get:
|
|
description: API for getting one UserRoleAccesses
|
|
parameters:
|
|
- description: UserRoleAccesses ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one UserRoleAccesses
|
|
tags:
|
|
- UserRoleAccesses
|
|
put:
|
|
description: API for update UserRoleAccesses
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.UserRoleAccessesUpdateRequest'
|
|
- description: UserRoleAccesses ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: update UserRoleAccesses
|
|
tags:
|
|
- UserRoleAccesses
|
|
/user-roles:
|
|
get:
|
|
description: API for getting all UserRoles
|
|
parameters:
|
|
- in: query
|
|
name: code
|
|
type: string
|
|
- in: query
|
|
name: description
|
|
type: string
|
|
- in: query
|
|
name: levelNumber
|
|
type: integer
|
|
- in: query
|
|
name: name
|
|
type: string
|
|
- in: query
|
|
name: statusId
|
|
type: integer
|
|
- in: query
|
|
name: count
|
|
type: integer
|
|
- in: query
|
|
name: limit
|
|
type: integer
|
|
- in: query
|
|
name: nextPage
|
|
type: integer
|
|
- in: query
|
|
name: page
|
|
type: integer
|
|
- in: query
|
|
name: previousPage
|
|
type: integer
|
|
- in: query
|
|
name: sort
|
|
type: string
|
|
- in: query
|
|
name: sortBy
|
|
type: string
|
|
- in: query
|
|
name: totalPage
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all UserRoles
|
|
tags:
|
|
- UserRoles
|
|
post:
|
|
description: API for create UserRoles
|
|
parameters:
|
|
- default: Bearer <Add access token here>
|
|
description: Insert your access token
|
|
in: header
|
|
name: Authorization
|
|
required: true
|
|
type: string
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.UserRolesCreateRequest'
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create UserRoles
|
|
tags:
|
|
- UserRoles
|
|
/user-roles/{id}:
|
|
delete:
|
|
description: API for delete UserRoles
|
|
parameters:
|
|
- description: UserRoles ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete UserRoles
|
|
tags:
|
|
- UserRoles
|
|
get:
|
|
description: API for getting one UserRoles
|
|
parameters:
|
|
- description: UserRoles ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one UserRoles
|
|
tags:
|
|
- UserRoles
|
|
put:
|
|
description: API for update UserRoles
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.UserRolesUpdateRequest'
|
|
- description: UserRoles ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: update UserRoles
|
|
tags:
|
|
- UserRoles
|
|
/users:
|
|
get:
|
|
description: API for getting all Users
|
|
parameters:
|
|
- in: query
|
|
name: email
|
|
type: string
|
|
- in: query
|
|
name: fullname
|
|
type: string
|
|
- in: query
|
|
name: identityNumber
|
|
type: string
|
|
- in: query
|
|
name: phoneNumber
|
|
type: string
|
|
- in: query
|
|
name: statusId
|
|
type: integer
|
|
- in: query
|
|
name: userRoleId
|
|
type: integer
|
|
- in: query
|
|
name: username
|
|
type: string
|
|
- in: query
|
|
name: count
|
|
type: integer
|
|
- in: query
|
|
name: limit
|
|
type: integer
|
|
- in: query
|
|
name: nextPage
|
|
type: integer
|
|
- in: query
|
|
name: page
|
|
type: integer
|
|
- in: query
|
|
name: previousPage
|
|
type: integer
|
|
- in: query
|
|
name: sort
|
|
type: string
|
|
- in: query
|
|
name: sortBy
|
|
type: string
|
|
- in: query
|
|
name: totalPage
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get all Users
|
|
tags:
|
|
- Users
|
|
post:
|
|
description: API for create Users
|
|
parameters:
|
|
- default: Bearer <Add access token here>
|
|
description: Insert your access token
|
|
in: header
|
|
name: Authorization
|
|
required: true
|
|
type: string
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.UsersCreateRequest'
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Create Users
|
|
tags:
|
|
- Users
|
|
/users/{id}:
|
|
delete:
|
|
description: API for delete Users
|
|
parameters:
|
|
- description: Users ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: delete Users
|
|
tags:
|
|
- Users
|
|
get:
|
|
description: API for getting one Users
|
|
parameters:
|
|
- description: Users ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: Get one Users
|
|
tags:
|
|
- Users
|
|
put:
|
|
description: API for update Users
|
|
parameters:
|
|
- description: Required payload
|
|
in: body
|
|
name: payload
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.UsersUpdateRequest'
|
|
- description: Users ID
|
|
in: path
|
|
name: id
|
|
required: true
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/response.Response'
|
|
"400":
|
|
description: Bad Request
|
|
schema:
|
|
$ref: '#/definitions/response.BadRequestError'
|
|
"401":
|
|
description: Unauthorized
|
|
schema:
|
|
$ref: '#/definitions/response.UnauthorizedError'
|
|
"500":
|
|
description: Internal Server Error
|
|
schema:
|
|
$ref: '#/definitions/response.InternalServerError'
|
|
security:
|
|
- Bearer: []
|
|
summary: update Users
|
|
tags:
|
|
- Users
|
|
swagger: "2.0"
|