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