Files
main-tbbank/backend/docs/swagger.yaml
2026-08-04 12:50:20 +05:00

1760 lines
37 KiB
YAML

basePath: /v1
definitions:
appresult.AppError:
properties:
code:
type: string
err: {}
message:
type: string
status:
type: boolean
type: object
appresult.AppSuccess:
properties:
code:
type: string
data: {}
message:
type: string
status:
type: boolean
type: object
auth.LoginDTO:
properties:
login:
type: string
password:
type: string
required:
- login
- password
type: object
auth.ResUserDTO:
properties:
Id:
type: integer
avatar:
type: string
createdAt:
type: string
fullName:
type: string
phoneNumber:
type: string
type: object
auth.TokenReqBody:
properties:
refreshToken:
type: string
type: object
banner.AddBannerDTO:
properties:
contentEn:
type: string
contentRu:
type: string
contentTm:
type: string
imagePath:
type: string
title:
$ref: '#/definitions/banner.Language'
required:
- title
type: object
banner.DataBannerDTO:
properties:
banners:
items:
$ref: '#/definitions/banner.GetBannerDTO'
type: array
count:
type: integer
type: object
banner.GetBannerDTO:
properties:
Id:
type: integer
contentEn:
type: string
contentRu:
type: string
contentTm:
type: string
createdAt:
type: string
imagePath:
type: string
title:
$ref: '#/definitions/banner.Language'
type: object
banner.Language:
properties:
en:
type: string
ru:
type: string
tm:
type: string
type: object
banner.UpdateBannerDTO:
properties:
contentEn:
type: string
contentRu:
type: string
contentTm:
type: string
imagePath:
type: string
title:
$ref: '#/definitions/banner.Language'
required:
- title
type: object
category.AddCategoryDTO:
properties:
name:
$ref: '#/definitions/category.Language'
required:
- name
type: object
category.CategoryDTO:
properties:
Id:
type: integer
createdAt:
type: string
name:
$ref: '#/definitions/category.Language'
status:
type: boolean
subCategories:
items:
$ref: '#/definitions/category.Language'
type: array
type: object
category.CategoryIdDTO:
properties:
Id:
type: integer
name:
$ref: '#/definitions/category.Language'
status:
type: boolean
type: object
category.DataCategoryDTO:
properties:
categories:
items:
$ref: '#/definitions/category.CategoryDTO'
type: array
count:
type: integer
type: object
category.Language:
properties:
en:
type: string
ru:
type: string
tm:
type: string
type: object
category.UpdateCategoryDTO:
properties:
name:
$ref: '#/definitions/category.Language'
status:
description: |-
Status intentionally has no "required" binding: the validator treats
false as a missing value, which would make it impossible to update a
disabled category.
type: boolean
required:
- name
type: object
currency.AddCurrencyDTO:
properties:
euroValue:
type: string
euroValueBuy:
type: string
rublValue:
type: string
rublValueBuy:
type: string
usdValue:
type: string
usdValueBuy:
type: string
required:
- euroValue
- euroValueBuy
- rublValue
- rublValueBuy
- usdValue
- usdValueBuy
type: object
currency.CurrencyDTO:
properties:
Id:
type: integer
createdAt:
type: string
euroValue:
type: string
euroValueBuy:
type: string
rublValue:
type: string
rublValueBuy:
type: string
usdValue:
type: string
usdValueBuy:
type: string
type: object
currency.CurrencyIdDTO:
properties:
Id:
type: integer
euroValue:
type: string
euroValueBuy:
type: string
rublValue:
type: string
rublValueBuy:
type: string
usdValue:
type: string
usdValueBuy:
type: string
type: object
currency.DataCurrencyDTO:
properties:
count:
type: integer
currencies:
items:
$ref: '#/definitions/currency.CurrencyDTO'
type: array
type: object
currency.UpdateCurrencyDTO:
properties:
euroValue:
type: string
euroValueBuy:
type: string
rublValue:
type: string
rublValueBuy:
type: string
usdValue:
type: string
usdValueBuy:
type: string
required:
- euroValue
- euroValueBuy
- rublValue
- rublValueBuy
- usdValue
- usdValueBuy
type: object
news.AddNewsDTO:
properties:
content:
$ref: '#/definitions/news.Language'
dateRelease:
type: string
imagePath:
type: string
title:
$ref: '#/definitions/news.Language'
type: object
news.DataNewsDTO:
properties:
count:
type: integer
news:
items:
$ref: '#/definitions/news.GetNewsDTO'
type: array
type: object
news.GetNewsDTO:
properties:
Id:
type: integer
content:
$ref: '#/definitions/news.Language'
dateRelease:
type: string
imagePath:
type: string
title:
$ref: '#/definitions/news.Language'
type: object
news.Language:
properties:
en:
type: string
ru:
type: string
tm:
type: string
type: object
news.UpdateNewsDTO:
properties:
content:
$ref: '#/definitions/news.Language'
dateRelease:
type: string
imagePath:
type: string
title:
$ref: '#/definitions/news.Language'
type: object
setting.SettingDTO:
properties:
Id:
type: integer
createdAt:
type: string
logo:
type: string
title:
type: string
type: object
setting.UpdateSettingDTO:
properties:
createdAt:
type: string
logo:
type: string
title:
type: string
type: object
static.AddStaticDTO:
properties:
contentEn:
type: string
contentRu:
type: string
contentTm:
type: string
logo:
type: string
title:
$ref: '#/definitions/static.Language'
required:
- logo
- title
type: object
static.DataStaticDTO:
properties:
count:
type: integer
statics:
items:
$ref: '#/definitions/static.StaticDTO'
type: array
type: object
static.Language:
properties:
en:
type: string
ru:
type: string
tm:
type: string
type: object
static.StaticDTO:
properties:
Id:
type: integer
contentEn:
type: string
contentRu:
type: string
contentTm:
type: string
createdAt:
type: string
logo:
type: string
title:
$ref: '#/definitions/static.Language'
type: object
static.StaticIdDTO:
properties:
Id:
type: integer
logo:
type: string
title:
$ref: '#/definitions/static.Language'
type: object
static.UpdateStaticDTO:
properties:
contentEn:
type: string
contentRu:
type: string
contentTm:
type: string
logo:
type: string
title:
$ref: '#/definitions/static.Language'
required:
- logo
- title
type: object
sub_category.AddSubCategoryDTO:
properties:
categoryId:
type: integer
content:
$ref: '#/definitions/sub_category.Language'
name:
$ref: '#/definitions/sub_category.Language'
type: object
sub_category.DataDTO:
properties:
count:
type: integer
subCategory:
items:
$ref: '#/definitions/sub_category.SubCategoryDTO'
type: array
type: object
sub_category.Language:
properties:
en:
type: string
ru:
type: string
tm:
type: string
type: object
sub_category.SubCategoryDTO:
properties:
Id:
type: integer
categoryId:
type: integer
content:
$ref: '#/definitions/sub_category.Language'
createdAt:
type: string
name:
$ref: '#/definitions/sub_category.Language'
status:
type: boolean
type: object
sub_category.UpdateSubCategoryDTO:
properties:
categoryId:
type: integer
content:
$ref: '#/definitions/sub_category.Language'
name:
$ref: '#/definitions/sub_category.Language'
type: object
users.BannerDTO:
properties:
contentEn:
type: string
contentRu:
type: string
contentTm:
type: string
createdAt:
type: string
id:
type: integer
imagePath:
type: string
title:
$ref: '#/definitions/users.Language'
type: object
users.CategoryDTO:
properties:
id:
type: integer
imagePath:
type: string
name:
$ref: '#/definitions/users.Language'
subCategories:
items:
$ref: '#/definitions/users.SubCategoryDTO'
type: array
type: object
users.CurrencyDTO:
properties:
createdAt:
type: string
euroValue:
type: string
euroValueBuy:
type: string
id:
type: integer
rublValue:
type: string
rublValueBuy:
type: string
usdValue:
type: string
usdValueBuy:
type: string
type: object
users.DataBannerDTO:
properties:
banners:
items:
$ref: '#/definitions/users.BannerDTO'
type: array
count:
type: integer
type: object
users.DataNewsDTO:
properties:
count:
type: integer
news:
items:
$ref: '#/definitions/users.NewsDTO'
type: array
type: object
users.DataStaticDTO:
properties:
count:
type: integer
statics:
items:
$ref: '#/definitions/users.StaticDTO'
type: array
type: object
users.Language:
properties:
en:
type: string
ru:
type: string
tm:
type: string
type: object
users.NewsDTO:
properties:
content:
$ref: '#/definitions/users.Language'
dateRelease:
type: string
id:
type: integer
imagePath:
type: string
title:
$ref: '#/definitions/users.Language'
type: object
users.StaticDTO:
properties:
contentEn:
type: string
contentRu:
type: string
contentTm:
type: string
createdAt:
type: string
id:
type: integer
logo:
type: string
title:
$ref: '#/definitions/users.Language'
type: object
users.SubCategoryDTO:
properties:
categoryId:
type: integer
content:
$ref: '#/definitions/users.Language'
count:
type: integer
id:
type: integer
name:
$ref: '#/definitions/users.Language'
type: object
host: localhost:5050
info:
contact:
email: support@swagger.io
name: API Support
url: http://www.swagger.io/support
description: Testing Swagger APIs.
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
termsOfService: http://swagger.io/terms/
title: Bank Service APIs
version: "1.0"
paths:
/admin/banner:
get:
consumes:
- application/json
description: all data banner
parameters:
- description: limit
in: query
name: limit
type: integer
- description: page
in: query
name: page
type: integer
- description: search term
in: query
name: search
type: string
- description: sort column (id, createdAt)
in: query
name: sort
type: string
- description: sort order (asc, desc)
in: query
name: order
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/banner.DataBannerDTO'
security:
- BearerAuth: []
tags:
- banner
post:
consumes:
- application/json
description: create banner
parameters:
- description: Create JSON
in: body
name: banner
required: true
schema:
$ref: '#/definitions/banner.AddBannerDTO'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/banner.GetBannerDTO'
security:
- BearerAuth: []
tags:
- banner
/admin/banner/{id}:
delete:
consumes:
- application/json
description: delete banner
parameters:
- description: banner ID
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
type: string
security:
- BearerAuth: []
tags:
- banner
get:
consumes:
- application/json
description: one data banner
parameters:
- description: banner ID
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/banner.GetBannerDTO'
security:
- BearerAuth: []
tags:
- banner
put:
consumes:
- application/json
description: update banner
parameters:
- description: banner ID
in: path
name: id
required: true
type: integer
- description: Create JSON
in: body
name: banner
required: true
schema:
$ref: '#/definitions/banner.UpdateBannerDTO'
produces:
- application/json
responses:
"200":
description: OK
schema:
type: string
security:
- BearerAuth: []
tags:
- banner
/admin/categories:
get:
consumes:
- application/json
description: all data categories
parameters:
- description: limit
in: query
name: limit
type: integer
- description: page
in: query
name: page
type: integer
- description: search term
in: query
name: search
type: string
- description: sort column (id, status, createdAt)
in: query
name: sort
type: string
- description: sort order (asc, desc)
in: query
name: order
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/category.DataCategoryDTO'
security:
- BearerAuth: []
tags:
- categories
post:
consumes:
- application/json
description: create categories
parameters:
- description: Create JSON
in: body
name: categories
required: true
schema:
$ref: '#/definitions/category.AddCategoryDTO'
produces:
- application/json
responses:
"200":
description: OK
schema:
type: string
security:
- BearerAuth: []
tags:
- categories
/admin/categories/{id}:
delete:
consumes:
- application/json
description: delete category
parameters:
- description: category ID
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
type: string
security:
- BearerAuth: []
tags:
- categories
get:
consumes:
- application/json
description: one data category
parameters:
- description: category ID
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/category.CategoryDTO'
security:
- BearerAuth: []
tags:
- categories
put:
consumes:
- application/json
description: update categories
parameters:
- description: category ID
in: path
name: id
required: true
type: integer
- description: Create JSON
in: body
name: categories
required: true
schema:
$ref: '#/definitions/category.UpdateCategoryDTO'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/category.CategoryIdDTO'
security:
- BearerAuth: []
tags:
- categories
/admin/categories/{id}/status:
put:
consumes:
- application/json
description: update status categories
parameters:
- description: category id
in: path
name: id
required: true
type: integer
- description: status
in: query
name: status
required: true
type: boolean
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/category.CategoryDTO'
security:
- BearerAuth: []
tags:
- categories
/admin/currency:
get:
consumes:
- application/json
description: all data currencies
parameters:
- description: limit
in: query
name: limit
type: integer
- description: page
in: query
name: page
type: integer
- description: search term
in: query
name: search
type: string
- description: sort column (id, usdValue, euroValue, rublValue, createdAt)
in: query
name: sort
type: string
- description: sort order (asc, desc)
in: query
name: order
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/currency.DataCurrencyDTO'
security:
- BearerAuth: []
tags:
- currencies
post:
consumes:
- application/json
description: create currency
parameters:
- description: Create JSON
in: body
name: currency
required: true
schema:
$ref: '#/definitions/currency.AddCurrencyDTO'
produces:
- application/json
responses:
"200":
description: OK
schema:
type: string
security:
- BearerAuth: []
tags:
- currencies
/admin/currency/{id}:
delete:
consumes:
- application/json
description: delete currency
parameters:
- description: currency ID
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
type: string
security:
- BearerAuth: []
tags:
- currencies
get:
consumes:
- application/json
description: one data currency
parameters:
- description: currency ID
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/currency.CurrencyDTO'
security:
- BearerAuth: []
tags:
- currencies
put:
consumes:
- application/json
description: update currency
parameters:
- description: currency ID
in: path
name: id
required: true
type: integer
- description: Create JSON
in: body
name: currency
required: true
schema:
$ref: '#/definitions/currency.UpdateCurrencyDTO'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/currency.CurrencyIdDTO'
security:
- BearerAuth: []
tags:
- currencies
/admin/file:
post:
consumes:
- multipart/form-data
description: file upload
parameters:
- description: this is a test file
in: formData
name: file
required: true
type: file
produces:
- application/json
responses:
"200":
description: OK
schema:
type: string
security:
- BearerAuth: []
tags:
- file-upload
/admin/file/{id}:
delete:
consumes:
- multipart/form-data
description: remove file
parameters:
- description: file path
in: path
name: id
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
type: string
security:
- BearerAuth: []
tags:
- file-upload
/admin/get-profile:
get:
consumes:
- application/json
description: profile data for Admin
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/auth.ResUserDTO'
security:
- BearerAuth: []
tags:
- admin
/admin/login:
post:
consumes:
- application/json
description: login for Admin
parameters:
- description: Login JSON
in: body
name: auth
required: true
schema:
$ref: '#/definitions/auth.LoginDTO'
produces:
- application/json
responses:
"200":
description: token
schema:
type: string
tags:
- auth
/admin/news:
get:
consumes:
- application/json
description: all data news
parameters:
- description: limit
in: query
name: limit
type: integer
- description: page
in: query
name: page
type: integer
- description: search term
in: query
name: search
type: string
- description: sort column (id, dateRelease, createdAt)
in: query
name: sort
type: string
- description: sort order (asc, desc)
in: query
name: order
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/news.DataNewsDTO'
security:
- BearerAuth: []
tags:
- news
post:
consumes:
- application/json
description: create news
parameters:
- description: Create JSON
in: body
name: news
required: true
schema:
$ref: '#/definitions/news.AddNewsDTO'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/news.GetNewsDTO'
security:
- BearerAuth: []
tags:
- news
/admin/news/{id}:
delete:
consumes:
- application/json
description: delete news
parameters:
- description: news ID
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
type: string
security:
- BearerAuth: []
tags:
- news
get:
consumes:
- application/json
description: one data news
parameters:
- description: news ID
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/news.GetNewsDTO'
security:
- BearerAuth: []
tags:
- news
put:
consumes:
- application/json
description: update news
parameters:
- description: news ID
in: path
name: id
required: true
type: integer
- description: Create JSON
in: body
name: news
required: true
schema:
$ref: '#/definitions/news.UpdateNewsDTO'
produces:
- application/json
responses:
"200":
description: OK
schema:
type: string
security:
- BearerAuth: []
tags:
- news
/admin/setting:
get:
consumes:
- application/json
description: get data user
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/setting.SettingDTO'
security:
- BearerAuth: []
tags:
- settings
/admin/setting/{id}:
put:
consumes:
- application/json
description: update data edu users
parameters:
- description: Create JSON
in: body
name: settings
required: true
schema:
$ref: '#/definitions/setting.UpdateSettingDTO'
- description: setting id
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/setting.SettingDTO'
security:
- BearerAuth: []
tags:
- settings
/admin/static:
get:
consumes:
- application/json
description: all data statics
parameters:
- description: limit
in: query
name: limit
type: integer
- description: page
in: query
name: page
type: integer
- description: search term
in: query
name: search
type: string
- description: sort column (id, createdAt)
in: query
name: sort
type: string
- description: sort order (asc, desc)
in: query
name: order
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/static.DataStaticDTO'
security:
- BearerAuth: []
tags:
- statics
post:
consumes:
- application/json
description: create statics
parameters:
- description: Create JSON
in: body
name: statics
required: true
schema:
$ref: '#/definitions/static.AddStaticDTO'
produces:
- application/json
responses:
"200":
description: OK
schema:
type: string
security:
- BearerAuth: []
tags:
- statics
/admin/static/{id}:
delete:
consumes:
- application/json
description: delete static
parameters:
- description: static ID
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
type: string
security:
- BearerAuth: []
tags:
- statics
get:
consumes:
- application/json
description: one data static
parameters:
- description: static ID
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/static.StaticDTO'
security:
- BearerAuth: []
tags:
- statics
put:
consumes:
- application/json
description: update statics
parameters:
- description: static ID
in: path
name: id
required: true
type: integer
- description: Create JSON
in: body
name: statics
required: true
schema:
$ref: '#/definitions/static.UpdateStaticDTO'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/static.StaticIdDTO'
security:
- BearerAuth: []
tags:
- statics
/admin/sub-categories:
post:
consumes:
- application/json
description: create sub categories
parameters:
- description: Create JSON
in: body
name: sub-categories
required: true
schema:
$ref: '#/definitions/sub_category.AddSubCategoryDTO'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/sub_category.SubCategoryDTO'
security:
- BearerAuth: []
tags:
- sub-categories
/admin/sub-categories/{id}:
delete:
consumes:
- application/json
description: delete sub-category
parameters:
- description: sub category id
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
type: string
security:
- BearerAuth: []
tags:
- sub-categories
get:
consumes:
- application/json
description: all sub-categories
parameters:
- description: limit
in: query
name: limit
type: integer
- description: page
in: query
name: page
type: integer
- description: search term
in: query
name: search
type: string
- description: sort column (id, status, createdAt)
in: query
name: sort
type: string
- description: sort order (asc, desc)
in: query
name: order
type: string
- description: category id
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/sub_category.DataDTO'
security:
- BearerAuth: []
tags:
- sub-categories
put:
consumes:
- application/json
description: update sub categories
parameters:
- description: sub-category id
in: path
name: id
required: true
type: integer
- description: Create JSON
in: body
name: sub-categories
required: true
schema:
$ref: '#/definitions/sub_category.UpdateSubCategoryDTO'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/sub_category.SubCategoryDTO'
security:
- BearerAuth: []
tags:
- sub-categories
/admin/sub-categories/{id}/edit:
get:
consumes:
- application/json
description: one data category
parameters:
- description: sub-category id
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/sub_category.SubCategoryDTO'
security:
- BearerAuth: []
tags:
- sub-categories
/admin/sub-categories/{id}/status:
put:
consumes:
- application/json
description: update status sub-categories
parameters:
- description: sub-category id
in: path
name: id
required: true
type: integer
- description: status
in: query
name: status
required: true
type: boolean
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/sub_category.SubCategoryDTO'
security:
- BearerAuth: []
tags:
- sub-categories
/admin/token:
post:
consumes:
- application/json
description: token for Admin
parameters:
- description: Token JSON
in: body
name: auth
required: true
schema:
$ref: '#/definitions/auth.TokenReqBody'
produces:
- application/json
responses:
"200":
description: token
schema:
type: string
tags:
- auth
/client/users/banners:
get:
consumes:
- application/json
description: all banners
parameters:
- description: limit
in: query
name: limit
type: integer
- description: page
in: query
name: page
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/users.DataBannerDTO'
tags:
- banners
/client/users/categories:
get:
consumes:
- application/json
description: all active categories with their active subcategories
produces:
- application/json
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/users.CategoryDTO'
type: array
tags:
- categories
/client/users/currency:
get:
consumes:
- application/json
description: latest currency rates
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/users.CurrencyDTO'
tags:
- currency
/client/users/news:
get:
consumes:
- application/json
description: all news
parameters:
- description: limit
in: query
name: limit
type: integer
- description: page
in: query
name: page
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/users.DataNewsDTO'
tags:
- news
/client/users/news/{id}:
get:
consumes:
- application/json
description: news by id
parameters:
- description: news ID
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/users.NewsDTO'
tags:
- news
/client/users/static:
get:
consumes:
- application/json
description: all static data
parameters:
- description: limit
in: query
name: limit
type: integer
- description: page
in: query
name: page
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/users.DataStaticDTO'
tags:
- statics
/client/users/static/{id}:
get:
consumes:
- application/json
description: static data by id
parameters:
- description: static ID
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/users.StaticDTO'
tags:
- statics
/client/users/sub-categories/{id}:
get:
consumes:
- application/json
description: sub-category by id
parameters:
- description: sub-category ID
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/users.SubCategoryDTO'
tags:
- categories
securityDefinitions:
BearerAuth:
in: header
name: Authorization
type: apiKey
swagger: "2.0"
tags:
- name: auth
- name: admin
- name: categories
- name: sub-categories
- name: settings