From de92c43bc6682528f532bd771ce0ea17fac7f3cd Mon Sep 17 00:00:00 2001 From: Noorwahid717 Date: Fri, 12 Jul 2024 16:15:23 +0700 Subject: [PATCH] edit swagger --- src/docs/docs.go | 4381 +++---------------------------- src/docs/swagger-old.yaml | 4052 +++++++++++++++++++++++++++++ src/docs/swagger.json | 4373 +++---------------------------- src/docs/swagger.yaml | 5127 ++++++++++++------------------------- src/go.mod | 60 +- src/go.sum | 104 + src/swagger.yaml | 2 + 7 files changed, 6600 insertions(+), 11499 deletions(-) create mode 100644 src/docs/swagger-old.yaml create mode 100644 src/swagger.yaml diff --git a/src/docs/docs.go b/src/docs/docs.go index c9eb776..f878f77 100644 --- a/src/docs/docs.go +++ b/src/docs/docs.go @@ -4,56 +4,50 @@ package docs import "github.com/swaggo/swag" const docTemplate = `{ - "schemes": {{ marshal .Schemes }}, "swagger": "2.0", "info": { - "description": "{{escape .Description}}", - "title": "{{.Title}}", - "contact": {}, - "version": "{{.Version}}" + "contact": {} }, - "host": "{{.Host}}", - "basePath": "{{.BasePath}}", "paths": { - "/v1/car-model-colors/": { + "/v1/cities/": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Create a CarModelColor", + "description": "Create a City", "consumes": [ "application/json" ], "tags": [ - "CarModelColors" + "Cities" ], - "summary": "Create a CarModelColor", + "summary": "Create a City", "parameters": [ { - "description": "Create a CarModelColor", + "description": "Create a City", "name": "Request", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelColorRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CreateCityRequest" } } ], "responses": { "201": { - "description": "CarModelColor response", + "description": "City response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CityResponse" } } } @@ -63,27 +57,27 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-colors/get-by-filter": { + "/v1/cities/get-by-filter": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Get CarModelColors", + "description": "Get Cities", "consumes": [ "application/json" ], "tags": [ - "CarModelColors" + "Cities" ], - "summary": "Get CarModelColors", + "summary": "Get Cities", "parameters": [ { "description": "Request", @@ -91,23 +85,23 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PaginationInputWithFilter" } } ], "responses": { "200": { - "description": "CarModelColor response", + "description": "City response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CityResponse" } } } @@ -117,27 +111,27 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-colors/{id}": { + "/v1/cities/{id}": { "get": { "security": [ { "AuthBearer": [] } ], - "description": "Get a CarModelColor", + "description": "Get a City", "consumes": [ "application/json" ], "tags": [ - "CarModelColors" + "Cities" ], - "summary": "Get a CarModelColor", + "summary": "Get a City", "parameters": [ { "type": "integer", @@ -149,17 +143,17 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "CarModelColor response", + "description": "City response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CityResponse" } } } @@ -169,13 +163,13 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -186,14 +180,14 @@ const docTemplate = `{ "AuthBearer": [] } ], - "description": "Update a CarModelColor", + "description": "Update a City", "consumes": [ "application/json" ], "tags": [ - "CarModelColors" + "Cities" ], - "summary": "Update a CarModelColor", + "summary": "Update a City", "parameters": [ { "type": "integer", @@ -203,28 +197,28 @@ const docTemplate = `{ "required": true }, { - "description": "Update a CarModelColor", + "description": "Update a City", "name": "Request", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelColorRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.UpdateCityRequest" } } ], "responses": { "200": { - "description": "CarModelColor response", + "description": "City response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CityResponse" } } } @@ -234,13 +228,13 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -251,14 +245,14 @@ const docTemplate = `{ "AuthBearer": [] } ], - "description": "Delete a CarModelColor", + "description": "Delete a City", "consumes": [ "application/json" ], "tags": [ - "CarModelColors" + "Cities" ], - "summary": "Delete a CarModelColor", + "summary": "Delete a City", "parameters": [ { "type": "integer", @@ -272,63 +266,63 @@ const docTemplate = `{ "200": { "description": "response", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-comments/": { + "/v1/companies/": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Create a CarModelComment", + "description": "Create a Company", "consumes": [ "application/json" ], "tags": [ - "CarModelComments" + "Companies" ], - "summary": "Create a CarModelComment", + "summary": "Create a Company", "parameters": [ { - "description": "Create a CarModelComment", + "description": "Create a Company", "name": "Request", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelCommentRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CreateCompanyRequest" } } ], "responses": { "201": { - "description": "CarModelComment response", + "description": "Company response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse" } } } @@ -338,27 +332,27 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-comments/get-by-filter": { + "/v1/companies/get-by-filter": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Get CarModelComments", + "description": "Get Companies", "consumes": [ "application/json" ], "tags": [ - "CarModelComments" + "Companies" ], - "summary": "Get CarModelComments", + "summary": "Get Companies", "parameters": [ { "description": "Request", @@ -366,23 +360,23 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PaginationInputWithFilter" } } ], "responses": { "200": { - "description": "CarModelComment response", + "description": "Company response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelCommentResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CompanyResponse" } } } @@ -392,27 +386,27 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-comments/{id}": { + "/v1/companies/{id}": { "get": { "security": [ { "AuthBearer": [] } ], - "description": "Get a CarModelComment", + "description": "Get a Company", "consumes": [ "application/json" ], "tags": [ - "CarModelComments" + "Companies" ], - "summary": "Get a CarModelComment", + "summary": "Get a Company", "parameters": [ { "type": "integer", @@ -424,17 +418,17 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "CarModelComment response", + "description": "Company response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse" } } } @@ -444,13 +438,13 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -461,14 +455,14 @@ const docTemplate = `{ "AuthBearer": [] } ], - "description": "Update a CarModelComment", + "description": "Update a Company", "consumes": [ "application/json" ], "tags": [ - "CarModelComments" + "Companies" ], - "summary": "Update a CarModelComment", + "summary": "Update a Company", "parameters": [ { "type": "integer", @@ -478,28 +472,28 @@ const docTemplate = `{ "required": true }, { - "description": "Update a CarModelComment", + "description": "Update a Company", "name": "Request", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelCommentRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.UpdateCompanyRequest" } } ], "responses": { "200": { - "description": "CarModelComment response", + "description": "Company response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse" } } } @@ -509,13 +503,13 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -526,14 +520,14 @@ const docTemplate = `{ "AuthBearer": [] } ], - "description": "Delete a CarModelComment", + "description": "Delete a Company", "consumes": [ "application/json" ], "tags": [ - "CarModelComments" + "Companies" ], - "summary": "Delete a CarModelComment", + "summary": "Delete a Company", "parameters": [ { "type": "integer", @@ -547,63 +541,67 @@ const docTemplate = `{ "200": { "description": "response", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-images/": { + "/v1/files/": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Create a CarModelImage", + "description": "Create a file", "consumes": [ - "application/json" + "application/x-www-form-urlencoded" ], "tags": [ - "CarModelImages" + "Files" ], - "summary": "Create a CarModelImage", + "summary": "Create a file", "parameters": [ { - "description": "Create a CarModelImage", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelImageRequest" - } + "type": "string", + "name": "description", + "in": "formData", + "required": true + }, + { + "type": "file", + "description": "Create a file", + "name": "file", + "in": "formData", + "required": true } ], "responses": { "201": { - "description": "CarModelImage response", + "description": "File response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.FileResponse" } } } @@ -613,27 +611,27 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-images/get-by-filter": { + "/v1/files/get-by-filter": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Get CarModelImages", + "description": "Get Files", "consumes": [ "application/json" ], "tags": [ - "CarModelImages" + "Files" ], - "summary": "Get CarModelImages", + "summary": "Get Files", "parameters": [ { "description": "Request", @@ -641,23 +639,23 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PaginationInputWithFilter" } } ], "responses": { "200": { - "description": "CarModelImage response", + "description": "File response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelImageResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_FileResponse" } } } @@ -667,27 +665,27 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-images/{id}": { + "/v1/files/{id}": { "get": { "security": [ { "AuthBearer": [] } ], - "description": "Get a CarModelImage", + "description": "Get a file", "consumes": [ "application/json" ], "tags": [ - "CarModelImages" + "Files" ], - "summary": "Get a CarModelImage", + "summary": "Get a file", "parameters": [ { "type": "integer", @@ -699,17 +697,17 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "CarModelImage response", + "description": "File response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.FileResponse" } } } @@ -719,13 +717,7 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -736,14 +728,14 @@ const docTemplate = `{ "AuthBearer": [] } ], - "description": "Update a CarModelImage", + "description": "Update a file", "consumes": [ "application/json" ], "tags": [ - "CarModelImages" + "Files" ], - "summary": "Update a CarModelImage", + "summary": "Update a file", "parameters": [ { "type": "integer", @@ -753,28 +745,28 @@ const docTemplate = `{ "required": true }, { - "description": "Update a CarModelImage", + "description": "Update a file", "name": "Request", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelImageRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.UpdateFileRequest" } } ], "responses": { "200": { - "description": "CarModelImage response", + "description": "File response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.FileResponse" } } } @@ -784,13 +776,7 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -801,14 +787,14 @@ const docTemplate = `{ "AuthBearer": [] } ], - "description": "Delete a CarModelImage", + "description": "Delete a file", "consumes": [ "application/json" ], "tags": [ - "CarModelImages" + "Files" ], - "summary": "Delete a CarModelImage", + "summary": "Delete a file", "parameters": [ { "type": "integer", @@ -822,63 +808,86 @@ const docTemplate = `{ "200": { "description": "response", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" + } + } + } + } + }, + "/v1/health/": { + "get": { + "description": "Health Check", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "health" + ], + "summary": "Health Check", + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, - "404": { - "description": "Not found", + "400": { + "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-price-histories/": { + "/v1/properties/": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Create a CarModelPriceHistory", + "description": "Create a Property", "consumes": [ "application/json" ], "tags": [ - "CarModelPriceHistories" + "Properties" ], - "summary": "Create a CarModelPriceHistory", + "summary": "Create a Property", "parameters": [ { - "description": "Create a CarModelPriceHistory", + "description": "Create a Property", "name": "Request", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPriceHistoryRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CreatePropertyRequest" } } ], "responses": { "201": { - "description": "CarModelPriceHistory response", + "description": "Property response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse" } } } @@ -888,27 +897,27 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-price-histories/get-by-filter": { + "/v1/properties/get-by-filter": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Get CarModelPriceHistories", + "description": "Get Properties", "consumes": [ "application/json" ], "tags": [ - "CarModelPriceHistories" + "Properties" ], - "summary": "Get CarModelPriceHistories", + "summary": "Get Properties", "parameters": [ { "description": "Request", @@ -916,23 +925,23 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PaginationInputWithFilter" } } ], "responses": { "200": { - "description": "CarModelPriceHistory response", + "description": "Property response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPriceHistoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_PropertyResponse" } } } @@ -942,27 +951,27 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-price-histories/{id}": { + "/v1/properties/{id}": { "get": { "security": [ { "AuthBearer": [] } ], - "description": "Get a CarModelPriceHistory", + "description": "Get a Property", "consumes": [ "application/json" ], "tags": [ - "CarModelPriceHistories" + "Properties" ], - "summary": "Get a CarModelPriceHistory", + "summary": "Get a Property", "parameters": [ { "type": "integer", @@ -974,17 +983,17 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "CarModelPriceHistory response", + "description": "Property response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse" } } } @@ -994,13 +1003,13 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -1011,14 +1020,14 @@ const docTemplate = `{ "AuthBearer": [] } ], - "description": "Update a CarModelPriceHistory", + "description": "Update a Property", "consumes": [ "application/json" ], "tags": [ - "CarModelPriceHistories" + "Properties" ], - "summary": "Update a CarModelPriceHistory", + "summary": "Update a Property", "parameters": [ { "type": "integer", @@ -1028,28 +1037,28 @@ const docTemplate = `{ "required": true }, { - "description": "Update a CarModelPriceHistory", + "description": "Update a Property", "name": "Request", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPriceHistoryRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.UpdatePropertyRequest" } } ], "responses": { "200": { - "description": "CarModelPriceHistory response", + "description": "Property response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse" } } } @@ -1059,13 +1068,13 @@ const docTemplate = `{ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -1076,14 +1085,14 @@ const docTemplate = `{ "AuthBearer": [] } ], - "description": "Delete a CarModelPriceHistory", + "description": "Delete a Property", "consumes": [ "application/json" ], "tags": [ - "CarModelPriceHistories" + "Properties" ], - "summary": "Delete a CarModelPriceHistory", + "summary": "Delete a Property", "parameters": [ { "type": "integer", @@ -1097,63 +1106,66 @@ const docTemplate = `{ "200": { "description": "response", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-properties/": { + "/v1/test/binder/body": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Create a CarModelProperty", + "description": "BodyBinder", "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "tags": [ - "CarModelProperties" + "Test" ], - "summary": "Create a CarModelProperty", + "summary": "BodyBinder", "parameters": [ { - "description": "Create a CarModelProperty", - "name": "Request", + "description": "person data", + "name": "person", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPropertyRequest" + "$ref": "#/definitions/api_handler.personData" } } ], "responses": { - "201": { - "description": "CarModelProperty response", + "200": { + "description": "Success", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse" + "validationErrors": { + "type": "object" } } } @@ -1161,53 +1173,61 @@ const docTemplate = `{ } }, "400": { - "description": "Bad request", + "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-properties/get-by-filter": { + "/v1/test/binder/uri/{id}/{name}": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Get CarModelProperties", + "description": "BodyBinder", "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "tags": [ - "CarModelProperties" + "Test" ], - "summary": "Get CarModelProperties", + "summary": "BodyBinder", "parameters": [ { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } + "type": "integer", + "description": "user id", + "name": "id", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "user name", + "name": "name", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "CarModelProperty response", + "description": "Success", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPropertyResponse" + "validationErrors": { + "type": "object" } } } @@ -1215,33 +1235,31 @@ const docTemplate = `{ } }, "400": { - "description": "Bad request", + "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-properties/{id}": { + "/v1/test/user/{id}": { "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a CarModelProperty", + "description": "UserById", "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "tags": [ - "CarModelProperties" + "Test" ], - "summary": "Get a CarModelProperty", + "summary": "UserById", "parameters": [ { "type": "integer", - "description": "Id", + "description": "user id", "name": "id", "in": "path", "required": true @@ -1249,3339 +1267,33 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "CarModelProperty response", + "description": "Success", "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse" - } - } - } - ] + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", + "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a CarModelProperty", + } + }, + "/v1/users/login-by-mobile": { + "post": { + "description": "RegisterLoginByMobileNumber", "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "tags": [ - "CarModelProperties" + "Users" ], - "summary": "Update a CarModelProperty", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a CarModelProperty", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPropertyRequest" - } - } - ], - "responses": { - "200": { - "description": "CarModelProperty response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a CarModelProperty", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModelProperties" - ], - "summary": "Delete a CarModelProperty", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-model-years/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a CarModelYear", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModelYears" - ], - "summary": "Create a CarModelYear", - "parameters": [ - { - "description": "Create a CarModelYear", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelYearRequest" - } - } - ], - "responses": { - "201": { - "description": "CarModelYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-model-years/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get CarModelYears", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModelYears" - ], - "summary": "Get CarModelYears", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "CarModelYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-model-years/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a CarModelYear", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModelYears" - ], - "summary": "Get a CarModelYear", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "CarModelYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a CarModelYear", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModelYears" - ], - "summary": "Update a CarModelYear", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a CarModelYear", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelYearRequest" - } - } - ], - "responses": { - "200": { - "description": "CarModelYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a CarModelYear", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModelYears" - ], - "summary": "Delete a CarModelYear", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-models/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a CarModel", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModels" - ], - "summary": "Create a CarModel", - "parameters": [ - { - "description": "Create a CarModel", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelRequest" - } - } - ], - "responses": { - "201": { - "description": "CarModel response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-models/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get CarModels", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModels" - ], - "summary": "Get CarModels", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "CarModel response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-models/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a CarModel", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModels" - ], - "summary": "Get a CarModel", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "CarModel response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a CarModel", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModels" - ], - "summary": "Update a CarModel", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a CarModel", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelRequest" - } - } - ], - "responses": { - "200": { - "description": "CarModel response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a CarModel", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModels" - ], - "summary": "Delete a CarModel", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-types/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a CarType", - "consumes": [ - "application/json" - ], - "tags": [ - "CarTypes" - ], - "summary": "Create a CarType", - "parameters": [ - { - "description": "Create a CarType", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarTypeRequest" - } - } - ], - "responses": { - "201": { - "description": "CarType response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-types/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get CarTypes", - "consumes": [ - "application/json" - ], - "tags": [ - "CarTypes" - ], - "summary": "Get CarTypes", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "CarType response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarTypeResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-types/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a CarType", - "consumes": [ - "application/json" - ], - "tags": [ - "CarTypes" - ], - "summary": "Get a CarType", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "CarType response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a CarType", - "consumes": [ - "application/json" - ], - "tags": [ - "CarTypes" - ], - "summary": "Update a CarType", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a CarType", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarTypeRequest" - } - } - ], - "responses": { - "200": { - "description": "CarType response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a CarType", - "consumes": [ - "application/json" - ], - "tags": [ - "CarTypes" - ], - "summary": "Delete a CarType", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/cities/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a City", - "consumes": [ - "application/json" - ], - "tags": [ - "Cities" - ], - "summary": "Create a City", - "parameters": [ - { - "description": "Create a City", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCityRequest" - } - } - ], - "responses": { - "201": { - "description": "City response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/cities/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get Cities", - "consumes": [ - "application/json" - ], - "tags": [ - "Cities" - ], - "summary": "Get Cities", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "City response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CityResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/cities/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a City", - "consumes": [ - "application/json" - ], - "tags": [ - "Cities" - ], - "summary": "Get a City", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "City response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a City", - "consumes": [ - "application/json" - ], - "tags": [ - "Cities" - ], - "summary": "Update a City", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a City", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCityRequest" - } - } - ], - "responses": { - "200": { - "description": "City response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a City", - "consumes": [ - "application/json" - ], - "tags": [ - "Cities" - ], - "summary": "Delete a City", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/colors/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a Color", - "consumes": [ - "application/json" - ], - "tags": [ - "Colors" - ], - "summary": "Create a Color", - "parameters": [ - { - "description": "Create a Color", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateColorRequest" - } - } - ], - "responses": { - "201": { - "description": "Color response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/colors/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get Colors", - "consumes": [ - "application/json" - ], - "tags": [ - "Colors" - ], - "summary": "Get Colors", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "Color response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_ColorResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/colors/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a Color", - "consumes": [ - "application/json" - ], - "tags": [ - "Colors" - ], - "summary": "Get a Color", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Color response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a Color", - "consumes": [ - "application/json" - ], - "tags": [ - "Colors" - ], - "summary": "Update a Color", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a Color", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateColorRequest" - } - } - ], - "responses": { - "200": { - "description": "Color response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a Color", - "consumes": [ - "application/json" - ], - "tags": [ - "Colors" - ], - "summary": "Delete a Color", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/companies/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a Company", - "consumes": [ - "application/json" - ], - "tags": [ - "Companies" - ], - "summary": "Create a Company", - "parameters": [ - { - "description": "Create a Company", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCompanyRequest" - } - } - ], - "responses": { - "201": { - "description": "Company response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/companies/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get Companies", - "consumes": [ - "application/json" - ], - "tags": [ - "Companies" - ], - "summary": "Get Companies", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "Company response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CompanyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/companies/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a Company", - "consumes": [ - "application/json" - ], - "tags": [ - "Companies" - ], - "summary": "Get a Company", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Company response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a Company", - "consumes": [ - "application/json" - ], - "tags": [ - "Companies" - ], - "summary": "Update a Company", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a Company", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCompanyRequest" - } - } - ], - "responses": { - "200": { - "description": "Company response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a Company", - "consumes": [ - "application/json" - ], - "tags": [ - "Companies" - ], - "summary": "Delete a Company", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/countries/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a country", - "consumes": [ - "application/json" - ], - "tags": [ - "Countries" - ], - "summary": "Create a country", - "parameters": [ - { - "description": "Create a country", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateUpdateCountryRequest" - } - } - ], - "responses": { - "201": { - "description": "Country response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/countries/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get Countries", - "consumes": [ - "application/json" - ], - "tags": [ - "Countries" - ], - "summary": "Get Countries", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "Country response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CountryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/countries/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a country", - "consumes": [ - "application/json" - ], - "tags": [ - "Countries" - ], - "summary": "Get a country", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Country response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a country", - "consumes": [ - "application/json" - ], - "tags": [ - "Countries" - ], - "summary": "Update a country", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a country", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateUpdateCountryRequest" - } - } - ], - "responses": { - "200": { - "description": "Country response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a country", - "consumes": [ - "application/json" - ], - "tags": [ - "Countries" - ], - "summary": "Delete a country", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/files/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a file", - "consumes": [ - "application/x-www-form-urlencoded" - ], - "tags": [ - "Files" - ], - "summary": "Create a file", - "parameters": [ - { - "type": "string", - "name": "description", - "in": "formData", - "required": true - }, - { - "type": "file", - "description": "Create a file", - "name": "file", - "in": "formData", - "required": true - } - ], - "responses": { - "201": { - "description": "File response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/files/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get Files", - "consumes": [ - "application/json" - ], - "tags": [ - "Files" - ], - "summary": "Get Files", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "File response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_FileResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/files/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a file", - "consumes": [ - "application/json" - ], - "tags": [ - "Files" - ], - "summary": "Get a file", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "File response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a file", - "consumes": [ - "application/json" - ], - "tags": [ - "Files" - ], - "summary": "Update a file", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a file", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateFileRequest" - } - } - ], - "responses": { - "200": { - "description": "File response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a file", - "consumes": [ - "application/json" - ], - "tags": [ - "Files" - ], - "summary": "Delete a file", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/gearboxes/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a Gearbox", - "consumes": [ - "application/json" - ], - "tags": [ - "Gearboxes" - ], - "summary": "Create a Gearbox", - "parameters": [ - { - "description": "Create a Gearbox", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateGearboxRequest" - } - } - ], - "responses": { - "201": { - "description": "Gearbox response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/gearboxes/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get Gearboxes", - "consumes": [ - "application/json" - ], - "tags": [ - "Gearboxes" - ], - "summary": "Get Gearboxes", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "Gearbox response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_GearboxResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/gearboxes/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a Gearbox", - "consumes": [ - "application/json" - ], - "tags": [ - "Gearboxes" - ], - "summary": "Get a Gearbox", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Gearbox response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a Gearbox", - "consumes": [ - "application/json" - ], - "tags": [ - "Gearboxes" - ], - "summary": "Update a Gearbox", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a Gearbox", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateGearboxRequest" - } - } - ], - "responses": { - "200": { - "description": "Gearbox response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a Gearbox", - "consumes": [ - "application/json" - ], - "tags": [ - "Gearboxes" - ], - "summary": "Delete a Gearbox", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/health/": { - "get": { - "description": "Health Check", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "health" - ], - "summary": "Health Check", - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Failed", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/properties/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a Property", - "consumes": [ - "application/json" - ], - "tags": [ - "Properties" - ], - "summary": "Create a Property", - "parameters": [ - { - "description": "Create a Property", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyRequest" - } - } - ], - "responses": { - "201": { - "description": "Property response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/properties/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get Properties", - "consumes": [ - "application/json" - ], - "tags": [ - "Properties" - ], - "summary": "Get Properties", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "Property response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/properties/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a Property", - "consumes": [ - "application/json" - ], - "tags": [ - "Properties" - ], - "summary": "Get a Property", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Property response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a Property", - "consumes": [ - "application/json" - ], - "tags": [ - "Properties" - ], - "summary": "Update a Property", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a Property", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyRequest" - } - } - ], - "responses": { - "200": { - "description": "Property response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a Property", - "consumes": [ - "application/json" - ], - "tags": [ - "Properties" - ], - "summary": "Delete a Property", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/property-categories/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a PropertyCategory", - "consumes": [ - "application/json" - ], - "tags": [ - "PropertyCategories" - ], - "summary": "Create a PropertyCategory", - "parameters": [ - { - "description": "Create a PropertyCategory", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyCategoryRequest" - } - } - ], - "responses": { - "201": { - "description": "PropertyCategory response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/property-categories/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get PropertyCategories", - "consumes": [ - "application/json" - ], - "tags": [ - "PropertyCategories" - ], - "summary": "Get PropertyCategories", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "PropertyCategory response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyCategoryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/property-categories/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a PropertyCategory", - "consumes": [ - "application/json" - ], - "tags": [ - "PropertyCategories" - ], - "summary": "Get a PropertyCategory", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "PropertyCategory response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a PropertyCategory", - "consumes": [ - "application/json" - ], - "tags": [ - "PropertyCategories" - ], - "summary": "Update a PropertyCategory", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a PropertyCategory", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyCategoryRequest" - } - } - ], - "responses": { - "200": { - "description": "PropertyCategory response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a PropertyCategory", - "consumes": [ - "application/json" - ], - "tags": [ - "PropertyCategories" - ], - "summary": "Delete a PropertyCategory", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/test/binder/body": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "BodyBinder", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Test" - ], - "summary": "BodyBinder", - "parameters": [ - { - "description": "person data", - "name": "person", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/api_handler.personData" - } - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "validationErrors": { - "type": "object" - } - } - } - ] - } - }, - "400": { - "description": "Failed", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/test/binder/uri/{id}/{name}": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "BodyBinder", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Test" - ], - "summary": "BodyBinder", - "parameters": [ - { - "type": "integer", - "description": "user id", - "name": "id", - "in": "path", - "required": true - }, - { - "type": "string", - "description": "user name", - "name": "name", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "validationErrors": { - "type": "object" - } - } - } - ] - } - }, - "400": { - "description": "Failed", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/test/user/{id}": { - "get": { - "description": "UserById", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Test" - ], - "summary": "UserById", - "parameters": [ - { - "type": "integer", - "description": "user id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Failed", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/users/login-by-mobile": { - "post": { - "description": "RegisterLoginByMobileNumber", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Users" - ], - "summary": "RegisterLoginByMobileNumber", + "summary": "RegisterLoginByMobileNumber", "parameters": [ { "description": "RegisterLoginByMobileRequest", @@ -4589,7 +1301,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.RegisterLoginByMobileRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.RegisterLoginByMobileRequest" } } ], @@ -4597,19 +1309,19 @@ const docTemplate = `{ "201": { "description": "Success", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "409": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -4635,7 +1347,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.LoginByUsernameRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.LoginByUsernameRequest" } } ], @@ -4643,19 +1355,19 @@ const docTemplate = `{ "201": { "description": "Success", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "409": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -4681,7 +1393,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.RegisterUserByUsernameRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.RegisterUserByUsernameRequest" } } ], @@ -4689,19 +1401,19 @@ const docTemplate = `{ "201": { "description": "Success", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "409": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -4727,7 +1439,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GetOtpRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.GetOtpRequest" } } ], @@ -4735,294 +1447,19 @@ const docTemplate = `{ "201": { "description": "Success", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "409": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/years/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a PersianYear", - "consumes": [ - "application/json" - ], - "tags": [ - "PersianYears" - ], - "summary": "Create a PersianYear", - "parameters": [ - { - "description": "Create a PersianYear", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreatePersianYearRequest" - } - } - ], - "responses": { - "201": { - "description": "PersianYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/years/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get PersianYears", - "consumes": [ - "application/json" - ], - "tags": [ - "PersianYears" - ], - "summary": "Get PersianYears", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "PersianYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PersianYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/years/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a PersianYear", - "consumes": [ - "application/json" - ], - "tags": [ - "PersianYears" - ], - "summary": "Get a PersianYear", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "PersianYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a PersianYear", - "consumes": [ - "application/json" - ], - "tags": [ - "PersianYears" - ], - "summary": "Update a PersianYear", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a PersianYear", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePersianYearRequest" - } - } - ], - "responses": { - "200": { - "description": "PersianYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a PersianYear", - "consumes": [ - "application/json" - ], - "tags": [ - "PersianYears" - ], - "summary": "Delete a PersianYear", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -5055,18 +1492,18 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarModelColorResponse": { "type": "object", "properties": { "color": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.ColorResponse" }, "id": { "type": "integer" } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarModelCommentResponse": { "type": "object", "properties": { "carModelId": { @@ -5079,11 +1516,11 @@ const docTemplate = `{ "type": "string" }, "user": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UserResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.UserResponse" } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarModelImageResponse": { "type": "object", "properties": { "carModelId": { @@ -5093,14 +1530,14 @@ const docTemplate = `{ "type": "integer" }, "image": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.FileResponse" }, "isMainImage": { "type": "boolean" } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarModelPriceHistoryResponse": { "type": "object", "properties": { "carModelYearId": { @@ -5117,7 +1554,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarModelPropertyResponse": { "type": "object", "properties": { "carModelId": { @@ -5127,54 +1564,54 @@ const docTemplate = `{ "type": "integer" }, "property": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse" }, "value": { "type": "string" } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarModelResponse": { "type": "object", "properties": { "carModelColors": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelColorResponse" } }, "carModelComments": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelCommentResponse" } }, "carModelImages": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelImageResponse" } }, "carModelProperties": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelPropertyResponse" } }, "carModelYears": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelYearResponse" } }, "carType": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarTypeResponse" }, "company": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse" }, "gearbox": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.GearboxResponse" }, "id": { "type": "integer" @@ -5184,7 +1621,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarModelYearResponse": { "type": "object", "properties": { "carModelId": { @@ -5193,18 +1630,18 @@ const docTemplate = `{ "carModelPriceHistories": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelPriceHistoryResponse" } }, "id": { "type": "integer" }, "persianYear": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearWithoutDateResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PersianYearWithoutDateResponse" } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarTypeResponse": { "type": "object", "properties": { "id": { @@ -5215,11 +1652,11 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CityResponse": { "type": "object", "properties": { "country": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CountryResponse" }, "id": { "type": "integer" @@ -5229,7 +1666,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.ColorResponse": { "type": "object", "properties": { "hexCode": { @@ -5243,11 +1680,11 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse": { "type": "object", "properties": { "country": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CountryResponse" }, "id": { "type": "integer" @@ -5257,19 +1694,19 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CountryResponse": { "type": "object", "properties": { "cities": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CityResponse" } }, "companies": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse" } }, "id": { @@ -5280,7 +1717,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelColorRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelColorRequest": { "type": "object", "required": [ "carModelId", @@ -5295,7 +1732,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelCommentRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelCommentRequest": { "type": "object", "required": [ "carModelId", @@ -5314,7 +1751,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelImageRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelImageRequest": { "type": "object", "required": [ "carModelId", @@ -5332,7 +1769,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPriceHistoryRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelPriceHistoryRequest": { "type": "object", "required": [ "carModelYearId", @@ -5351,7 +1788,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPropertyRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelPropertyRequest": { "type": "object", "required": [ "carModelId", @@ -5371,7 +1808,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelRequest": { "type": "object", "required": [ "carTypeId", @@ -5396,7 +1833,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelYearRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelYearRequest": { "type": "object", "required": [ "carModelId", @@ -5411,7 +1848,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarTypeRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarTypeRequest": { "type": "object", "required": [ "name" @@ -5424,7 +1861,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCityRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCityRequest": { "type": "object", "required": [ "countryId", @@ -5441,7 +1878,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateColorRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateColorRequest": { "type": "object", "properties": { "hexCode": { @@ -5456,7 +1893,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCompanyRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCompanyRequest": { "type": "object", "required": [ "countryId", @@ -5473,7 +1910,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateGearboxRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateGearboxRequest": { "type": "object", "required": [ "name" @@ -5486,7 +1923,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreatePersianYearRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreatePersianYearRequest": { "type": "object", "properties": { "endAt": { @@ -5505,7 +1942,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyCategoryRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreatePropertyCategoryRequest": { "type": "object", "required": [ "name" @@ -5522,7 +1959,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreatePropertyRequest": { "type": "object", "required": [ "categoryId", @@ -5555,7 +1992,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateUpdateCountryRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateUpdateCountryRequest": { "type": "object", "required": [ "name" @@ -5568,7 +2005,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.FileResponse": { "type": "object", "properties": { "description": { @@ -5588,7 +2025,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.GearboxResponse": { "type": "object", "properties": { "id": { @@ -5599,7 +2036,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.GetOtpRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.GetOtpRequest": { "type": "object", "required": [ "mobileNumber" @@ -5612,7 +2049,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.LoginByUsernameRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.LoginByUsernameRequest": { "type": "object", "required": [ "password", @@ -5629,7 +2066,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.PersianYearResponse": { "type": "object", "properties": { "endAt": { @@ -5649,7 +2086,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearWithoutDateResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.PersianYearWithoutDateResponse": { "type": "object", "properties": { "id": { @@ -5663,7 +2100,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.PropertyCategoryResponse": { "type": "object", "properties": { "icon": { @@ -5678,16 +2115,16 @@ const docTemplate = `{ "properties": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse" } } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse": { "type": "object", "properties": { "category": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyCategoryResponse" }, "dataType": { "type": "string" @@ -5709,7 +2146,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.RegisterLoginByMobileRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.RegisterLoginByMobileRequest": { "type": "object", "required": [ "mobileNumber", @@ -5728,7 +2165,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.RegisterUserByUsernameRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.RegisterUserByUsernameRequest": { "type": "object", "required": [ "firstName", @@ -5759,7 +2196,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelColorRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelColorRequest": { "type": "object", "properties": { "carModelId": { @@ -5770,7 +2207,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelCommentRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelCommentRequest": { "type": "object", "required": [ "message" @@ -5782,7 +2219,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelImageRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelImageRequest": { "type": "object", "properties": { "isMainImage": { @@ -5790,7 +2227,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPriceHistoryRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelPriceHistoryRequest": { "type": "object", "properties": { "price": { @@ -5801,7 +2238,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPropertyRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelPropertyRequest": { "type": "object", "required": [ "value" @@ -5813,7 +2250,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelRequest": { "type": "object", "properties": { "carTypeId": { @@ -5830,7 +2267,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelYearRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelYearRequest": { "type": "object", "properties": { "carModelId": { @@ -5841,7 +2278,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarTypeRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarTypeRequest": { "type": "object", "required": [ "name" @@ -5854,7 +2291,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCityRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCityRequest": { "type": "object", "properties": { "countryId": { @@ -5867,7 +2304,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateColorRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateColorRequest": { "type": "object", "properties": { "hexCode": { @@ -5882,7 +2319,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCompanyRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCompanyRequest": { "type": "object", "properties": { "countryId": { @@ -5895,7 +2332,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateFileRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateFileRequest": { "type": "object", "properties": { "description": { @@ -5903,7 +2340,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateGearboxRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateGearboxRequest": { "type": "object", "required": [ "name" @@ -5916,7 +2353,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePersianYearRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdatePersianYearRequest": { "type": "object", "properties": { "endAt": { @@ -5935,7 +2372,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyCategoryRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdatePropertyCategoryRequest": { "type": "object", "properties": { "icon": { @@ -5946,7 +2383,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdatePropertyRequest": { "type": "object", "properties": { "categoryId": { @@ -5973,7 +2410,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UserResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.UserResponse": { "type": "object", "properties": { "email": { @@ -5993,13 +2430,13 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse": { + "github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse": { "type": "object", "properties": { "error": {}, "result": {}, "resultCode": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.ResultCode" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.ResultCode" }, "success": { "type": "boolean" @@ -6007,12 +2444,12 @@ const docTemplate = `{ "validationErrors": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_validation.ValidationError" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_validation.ValidationError" } } } }, - "github_com_naeemaei_golang-clean-web-api_api_helper.ResultCode": { + "github_com_Noorwahid717_restful-api-go_api_helper.ResultCode": { "type": "integer", "enum": [ 0, @@ -6037,7 +2474,7 @@ const docTemplate = `{ "InternalError" ] }, - "github_com_naeemaei_golang-clean-web-api_api_validation.ValidationError": { + "github_com_Noorwahid717_restful-api-go_api_validation.ValidationError": { "type": "object", "properties": { "message": { @@ -6054,7 +2491,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.Filter": { + "github_com_Noorwahid717_restful-api-go_domain_filter.Filter": { "type": "object", "properties": { "filterType": { @@ -6073,7 +2510,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelColorResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelColorResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6085,7 +2522,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelColorResponse" } }, "pageNumber": { @@ -6102,7 +2539,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelCommentResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelCommentResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6114,7 +2551,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelCommentResponse" } }, "pageNumber": { @@ -6131,7 +2568,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelImageResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelImageResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6143,7 +2580,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelImageResponse" } }, "pageNumber": { @@ -6160,7 +2597,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPriceHistoryResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelPriceHistoryResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6172,7 +2609,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelPriceHistoryResponse" } }, "pageNumber": { @@ -6189,7 +2626,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPropertyResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelPropertyResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6201,7 +2638,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelPropertyResponse" } }, "pageNumber": { @@ -6218,7 +2655,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6230,7 +2667,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelResponse" } }, "pageNumber": { @@ -6247,7 +2684,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelYearResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelYearResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6259,7 +2696,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelYearResponse" } }, "pageNumber": { @@ -6276,7 +2713,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarTypeResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarTypeResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6288,7 +2725,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarTypeResponse" } }, "pageNumber": { @@ -6305,7 +2742,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CityResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CityResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6317,7 +2754,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CityResponse" } }, "pageNumber": { @@ -6334,7 +2771,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_ColorResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_ColorResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6346,7 +2783,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.ColorResponse" } }, "pageNumber": { @@ -6363,7 +2800,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CompanyResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CompanyResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6375,7 +2812,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse" } }, "pageNumber": { @@ -6392,7 +2829,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CountryResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CountryResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6404,7 +2841,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CountryResponse" } }, "pageNumber": { @@ -6421,7 +2858,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_FileResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_FileResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6433,7 +2870,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.FileResponse" } }, "pageNumber": { @@ -6450,7 +2887,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_GearboxResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_GearboxResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6462,7 +2899,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.GearboxResponse" } }, "pageNumber": { @@ -6479,7 +2916,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PersianYearResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_PersianYearResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6491,7 +2928,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PersianYearResponse" } }, "pageNumber": { @@ -6508,7 +2945,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyCategoryResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_PropertyCategoryResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6520,7 +2957,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyCategoryResponse" } }, "pageNumber": { @@ -6537,7 +2974,7 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_PropertyResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6549,7 +2986,7 @@ const docTemplate = `{ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse" } }, "pageNumber": { @@ -6566,13 +3003,13 @@ const docTemplate = `{ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PaginationInputWithFilter": { "type": "object", "properties": { "filter": { "type": "object", "additionalProperties": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.Filter" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.Filter" } }, "pageNumber": { @@ -6584,12 +3021,12 @@ const docTemplate = `{ "sort": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.Sort" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.Sort" } } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.Sort": { + "github_com_Noorwahid717_restful-api-go_domain_filter.Sort": { "type": "object", "properties": { "colId": { diff --git a/src/docs/swagger-old.yaml b/src/docs/swagger-old.yaml new file mode 100644 index 0000000..369d5a1 --- /dev/null +++ b/src/docs/swagger-old.yaml @@ -0,0 +1,4052 @@ +definitions: + api_handler.personData: + properties: + first_name: + maxLength: 10 + minLength: 4 + type: string + last_name: + maxLength: 20 + minLength: 6 + type: string + mobile_number: + maxLength: 11 + minLength: 11 + type: string + required: + - first_name + - last_name + - mobile_number + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse: + properties: + color: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse' + id: + type: integer + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse: + properties: + carModelId: + type: integer + id: + type: integer + message: + type: string + user: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UserResponse' + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse: + properties: + carModelId: + type: integer + id: + type: integer + image: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse' + isMainImage: + type: boolean + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse: + properties: + carModelYearId: + type: integer + id: + type: integer + price: + type: number + priceAt: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse: + properties: + carModelId: + type: integer + id: + type: integer + property: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse' + value: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse: + properties: + carModelColors: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse' + type: array + carModelComments: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse' + type: array + carModelImages: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse' + type: array + carModelProperties: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse' + type: array + carModelYears: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse' + type: array + carType: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse' + company: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse' + gearbox: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse' + id: + type: integer + name: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse: + properties: + carModelId: + type: integer + carModelPriceHistories: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse' + type: array + id: + type: integer + persianYear: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearWithoutDateResponse' + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse: + properties: + id: + type: integer + name: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse: + properties: + country: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse' + id: + type: integer + name: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse: + properties: + hexCode: + type: string + id: + type: integer + name: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse: + properties: + country: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse' + id: + type: integer + name: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse: + properties: + cities: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse' + type: array + companies: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse' + type: array + id: + type: integer + name: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelColorRequest: + properties: + carModelId: + type: integer + colorId: + type: integer + required: + - carModelId + - colorId + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelCommentRequest: + properties: + carModelId: + type: integer + message: + maxLength: 100 + type: string + userId: + type: integer + required: + - carModelId + - message + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelImageRequest: + properties: + carModelId: + type: integer + imageId: + type: integer + isMainImage: + type: boolean + required: + - carModelId + - imageId + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPriceHistoryRequest: + properties: + carModelYearId: + type: integer + price: + type: number + priceAt: + type: string + required: + - carModelYearId + - price + - priceAt + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPropertyRequest: + properties: + carModelId: + type: integer + propertyId: + type: integer + value: + maxLength: 100 + type: string + required: + - carModelId + - propertyId + - value + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelRequest: + properties: + carTypeId: + type: integer + companyId: + type: integer + gearboxId: + type: integer + name: + maxLength: 15 + minLength: 3 + type: string + required: + - carTypeId + - companyId + - gearboxId + - name + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelYearRequest: + properties: + carModelId: + type: integer + persianYearId: + type: integer + required: + - carModelId + - persianYearId + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarTypeRequest: + properties: + name: + maxLength: 15 + minLength: 3 + type: string + required: + - name + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreateCityRequest: + properties: + countryId: + type: integer + name: + maxLength: 20 + minLength: 3 + type: string + required: + - countryId + - name + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreateColorRequest: + properties: + hexCode: + maxLength: 7 + minLength: 7 + type: string + name: + maxLength: 15 + minLength: 3 + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreateCompanyRequest: + properties: + countryId: + type: integer + name: + maxLength: 20 + minLength: 3 + type: string + required: + - countryId + - name + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreateGearboxRequest: + properties: + name: + maxLength: 15 + minLength: 3 + type: string + required: + - name + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreatePersianYearRequest: + properties: + endAt: + type: string + persianTitle: + maxLength: 4 + minLength: 4 + type: string + startAt: + type: string + year: + type: integer + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyCategoryRequest: + properties: + icon: + maxLength: 1000 + type: string + name: + maxLength: 50 + minLength: 3 + type: string + required: + - name + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyRequest: + properties: + categoryId: + type: integer + dataType: + maxLength: 15 + type: string + description: + maxLength: 1000 + type: string + icon: + maxLength: 1000 + type: string + name: + maxLength: 50 + minLength: 3 + type: string + unit: + maxLength: 15 + type: string + required: + - categoryId + - name + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.CreateUpdateCountryRequest: + properties: + name: + maxLength: 20 + minLength: 3 + type: string + required: + - name + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse: + properties: + description: + type: string + directory: + type: string + id: + type: integer + mimeType: + type: string + name: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse: + properties: + id: + type: integer + name: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.GetOtpRequest: + properties: + mobileNumber: + maxLength: 11 + minLength: 11 + type: string + required: + - mobileNumber + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.LoginByUsernameRequest: + properties: + password: + minLength: 6 + type: string + username: + minLength: 5 + type: string + required: + - password + - username + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse: + properties: + endAt: + type: string + id: + type: integer + persianTitle: + type: string + startAt: + type: string + year: + type: integer + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearWithoutDateResponse: + properties: + id: + type: integer + persianTitle: + type: string + year: + type: integer + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse: + properties: + icon: + type: string + id: + type: integer + name: + type: string + properties: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse' + type: array + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse: + properties: + category: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse' + dataType: + type: string + description: + type: string + icon: + type: string + id: + type: integer + name: + type: string + unit: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.RegisterLoginByMobileRequest: + properties: + mobileNumber: + maxLength: 11 + minLength: 11 + type: string + otp: + maxLength: 6 + minLength: 6 + type: string + required: + - mobileNumber + - otp + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.RegisterUserByUsernameRequest: + properties: + email: + minLength: 6 + type: string + firstName: + minLength: 3 + type: string + lastName: + minLength: 6 + type: string + password: + minLength: 6 + type: string + username: + minLength: 5 + type: string + required: + - firstName + - lastName + - password + - username + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelColorRequest: + properties: + carModelId: + type: integer + colorId: + type: integer + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelCommentRequest: + properties: + message: + maxLength: 100 + type: string + required: + - message + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelImageRequest: + properties: + isMainImage: + type: boolean + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPriceHistoryRequest: + properties: + price: + type: number + priceAt: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPropertyRequest: + properties: + value: + maxLength: 100 + type: string + required: + - value + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelRequest: + properties: + carTypeId: + type: integer + companyId: + type: integer + gearboxId: + type: integer + name: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelYearRequest: + properties: + carModelId: + type: integer + persianYearId: + type: integer + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarTypeRequest: + properties: + name: + maxLength: 15 + minLength: 3 + type: string + required: + - name + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCityRequest: + properties: + countryId: + type: integer + name: + maxLength: 20 + minLength: 3 + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdateColorRequest: + properties: + hexCode: + maxLength: 7 + minLength: 7 + type: string + name: + maxLength: 15 + minLength: 3 + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCompanyRequest: + properties: + countryId: + type: integer + name: + maxLength: 20 + minLength: 3 + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdateFileRequest: + properties: + description: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdateGearboxRequest: + properties: + name: + maxLength: 15 + minLength: 3 + type: string + required: + - name + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePersianYearRequest: + properties: + endAt: + type: string + persianTitle: + maxLength: 4 + minLength: 4 + type: string + startAt: + type: string + year: + type: integer + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyCategoryRequest: + properties: + icon: + type: string + name: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyRequest: + properties: + categoryId: + type: integer + dataType: + maxLength: 15 + type: string + description: + maxLength: 1000 + type: string + icon: + maxLength: 1000 + type: string + name: + type: string + unit: + maxLength: 15 + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_dto.UserResponse: + properties: + email: + type: string + firstName: + type: string + id: + type: integer + lastName: + type: string + username: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse: + properties: + error: {} + result: {} + resultCode: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.ResultCode' + success: + type: boolean + validationErrors: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_validation.ValidationError' + type: array + type: object + github_com_naeemaei_golang-clean-web-api_api_helper.ResultCode: + enum: + - 0 + - 40001 + - 40101 + - 40301 + - 40401 + - 42901 + - 42902 + - 50001 + - 50002 + type: integer + x-enum-varnames: + - Success + - ValidationError + - AuthError + - ForbiddenError + - NotFoundError + - LimiterError + - OtpLimiterError + - CustomRecovery + - InternalError + github_com_naeemaei_golang-clean-web-api_api_validation.ValidationError: + properties: + message: + type: string + property: + type: string + tag: + type: string + value: + type: string + type: object + github_com_naeemaei_golang-clean-web-api_domain_filter.Filter: + properties: + filterType: + description: text number + type: string + from: + type: string + to: + type: string + type: + description: contains notContains equals notEqual startsWith lessThan lessThanOrEqual + greaterThan greaterThanOrEqual inRange endsWith + type: string + type: object + ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelColorResponse + : properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelCommentResponse + : properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelImageResponse + : properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPriceHistoryResponse + : properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPropertyResponse + : properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelResponse + : properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelYearResponse + : properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarTypeResponse + : properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CityResponse: + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_ColorResponse: + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CompanyResponse + : properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CountryResponse + : properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_FileResponse: + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_GearboxResponse + : properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PersianYearResponse + : properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyCategoryResponse + : properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyResponse + : properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse' + type: array + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + type: object + github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter: + properties: + filter: + additionalProperties: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.Filter' + type: object + pageNumber: + type: integer + pageSize: + type: integer + sort: + items: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.Sort' + type: array + type: object + github_com_naeemaei_golang-clean-web-api_domain_filter.Sort: + properties: + colId: + type: string + sort: + type: string + type: object +info: + contact: {} +paths: + /v1/car-model-colors/: + post: + consumes: + - application/json + description: Create a CarModelColor + parameters: + - description: Create a CarModelColor + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelColorRequest' + responses: + "201": + description: CarModelColor response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a CarModelColor + tags: + - CarModelColors + /v1/car-model-colors/{id}: + delete: + consumes: + - application/json + description: Delete a CarModelColor + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a CarModelColor + tags: + - CarModelColors + get: + consumes: + - application/json + description: Get a CarModelColor + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: CarModelColor response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a CarModelColor + tags: + - CarModelColors + put: + consumes: + - application/json + description: Update a CarModelColor + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a CarModelColor + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelColorRequest' + responses: + "200": + description: CarModelColor response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a CarModelColor + tags: + - CarModelColors + /v1/car-model-colors/get-by-filter: + post: + consumes: + - application/json + description: Get CarModelColors + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: CarModelColor response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelColorResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get CarModelColors + tags: + - CarModelColors + /v1/car-model-comments/: + post: + consumes: + - application/json + description: Create a CarModelComment + parameters: + - description: Create a CarModelComment + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelCommentRequest' + responses: + "201": + description: CarModelComment response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a CarModelComment + tags: + - CarModelComments + /v1/car-model-comments/{id}: + delete: + consumes: + - application/json + description: Delete a CarModelComment + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a CarModelComment + tags: + - CarModelComments + get: + consumes: + - application/json + description: Get a CarModelComment + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: CarModelComment response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a CarModelComment + tags: + - CarModelComments + put: + consumes: + - application/json + description: Update a CarModelComment + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a CarModelComment + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelCommentRequest' + responses: + "200": + description: CarModelComment response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a CarModelComment + tags: + - CarModelComments + /v1/car-model-comments/get-by-filter: + post: + consumes: + - application/json + description: Get CarModelComments + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: CarModelComment response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelCommentResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get CarModelComments + tags: + - CarModelComments + /v1/car-model-images/: + post: + consumes: + - application/json + description: Create a CarModelImage + parameters: + - description: Create a CarModelImage + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelImageRequest' + responses: + "201": + description: CarModelImage response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a CarModelImage + tags: + - CarModelImages + /v1/car-model-images/{id}: + delete: + consumes: + - application/json + description: Delete a CarModelImage + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a CarModelImage + tags: + - CarModelImages + get: + consumes: + - application/json + description: Get a CarModelImage + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: CarModelImage response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a CarModelImage + tags: + - CarModelImages + put: + consumes: + - application/json + description: Update a CarModelImage + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a CarModelImage + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelImageRequest' + responses: + "200": + description: CarModelImage response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a CarModelImage + tags: + - CarModelImages + /v1/car-model-images/get-by-filter: + post: + consumes: + - application/json + description: Get CarModelImages + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: CarModelImage response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelImageResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get CarModelImages + tags: + - CarModelImages + /v1/car-model-price-histories/: + post: + consumes: + - application/json + description: Create a CarModelPriceHistory + parameters: + - description: Create a CarModelPriceHistory + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPriceHistoryRequest' + responses: + "201": + description: CarModelPriceHistory response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a CarModelPriceHistory + tags: + - CarModelPriceHistories + /v1/car-model-price-histories/{id}: + delete: + consumes: + - application/json + description: Delete a CarModelPriceHistory + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a CarModelPriceHistory + tags: + - CarModelPriceHistories + get: + consumes: + - application/json + description: Get a CarModelPriceHistory + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: CarModelPriceHistory response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a CarModelPriceHistory + tags: + - CarModelPriceHistories + put: + consumes: + - application/json + description: Update a CarModelPriceHistory + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a CarModelPriceHistory + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPriceHistoryRequest' + responses: + "200": + description: CarModelPriceHistory response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a CarModelPriceHistory + tags: + - CarModelPriceHistories + /v1/car-model-price-histories/get-by-filter: + post: + consumes: + - application/json + description: Get CarModelPriceHistories + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: CarModelPriceHistory response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPriceHistoryResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get CarModelPriceHistories + tags: + - CarModelPriceHistories + /v1/car-model-properties/: + post: + consumes: + - application/json + description: Create a CarModelProperty + parameters: + - description: Create a CarModelProperty + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPropertyRequest' + responses: + "201": + description: CarModelProperty response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a CarModelProperty + tags: + - CarModelProperties + /v1/car-model-properties/{id}: + delete: + consumes: + - application/json + description: Delete a CarModelProperty + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a CarModelProperty + tags: + - CarModelProperties + get: + consumes: + - application/json + description: Get a CarModelProperty + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: CarModelProperty response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a CarModelProperty + tags: + - CarModelProperties + put: + consumes: + - application/json + description: Update a CarModelProperty + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a CarModelProperty + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPropertyRequest' + responses: + "200": + description: CarModelProperty response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a CarModelProperty + tags: + - CarModelProperties + /v1/car-model-properties/get-by-filter: + post: + consumes: + - application/json + description: Get CarModelProperties + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: CarModelProperty response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPropertyResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get CarModelProperties + tags: + - CarModelProperties + /v1/car-model-years/: + post: + consumes: + - application/json + description: Create a CarModelYear + parameters: + - description: Create a CarModelYear + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelYearRequest' + responses: + "201": + description: CarModelYear response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a CarModelYear + tags: + - CarModelYears + /v1/car-model-years/{id}: + delete: + consumes: + - application/json + description: Delete a CarModelYear + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a CarModelYear + tags: + - CarModelYears + get: + consumes: + - application/json + description: Get a CarModelYear + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: CarModelYear response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a CarModelYear + tags: + - CarModelYears + put: + consumes: + - application/json + description: Update a CarModelYear + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a CarModelYear + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelYearRequest' + responses: + "200": + description: CarModelYear response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a CarModelYear + tags: + - CarModelYears + /v1/car-model-years/get-by-filter: + post: + consumes: + - application/json + description: Get CarModelYears + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: CarModelYear response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelYearResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get CarModelYears + tags: + - CarModelYears + /v1/car-models/: + post: + consumes: + - application/json + description: Create a CarModel + parameters: + - description: Create a CarModel + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelRequest' + responses: + "201": + description: CarModel response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a CarModel + tags: + - CarModels + /v1/car-models/{id}: + delete: + consumes: + - application/json + description: Delete a CarModel + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a CarModel + tags: + - CarModels + get: + consumes: + - application/json + description: Get a CarModel + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: CarModel response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a CarModel + tags: + - CarModels + put: + consumes: + - application/json + description: Update a CarModel + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a CarModel + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelRequest' + responses: + "200": + description: CarModel response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a CarModel + tags: + - CarModels + /v1/car-models/get-by-filter: + post: + consumes: + - application/json + description: Get CarModels + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: CarModel response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get CarModels + tags: + - CarModels + /v1/car-types/: + post: + consumes: + - application/json + description: Create a CarType + parameters: + - description: Create a CarType + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarTypeRequest' + responses: + "201": + description: CarType response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a CarType + tags: + - CarTypes + /v1/car-types/{id}: + delete: + consumes: + - application/json + description: Delete a CarType + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a CarType + tags: + - CarTypes + get: + consumes: + - application/json + description: Get a CarType + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: CarType response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a CarType + tags: + - CarTypes + put: + consumes: + - application/json + description: Update a CarType + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a CarType + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarTypeRequest' + responses: + "200": + description: CarType response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a CarType + tags: + - CarTypes + /v1/car-types/get-by-filter: + post: + consumes: + - application/json + description: Get CarTypes + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: CarType response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarTypeResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get CarTypes + tags: + - CarTypes + /v1/cities/: + post: + consumes: + - application/json + description: Create a City + parameters: + - description: Create a City + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCityRequest' + responses: + "201": + description: City response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a City + tags: + - Cities + /v1/cities/{id}: + delete: + consumes: + - application/json + description: Delete a City + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a City + tags: + - Cities + get: + consumes: + - application/json + description: Get a City + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: City response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a City + tags: + - Cities + put: + consumes: + - application/json + description: Update a City + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a City + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCityRequest' + responses: + "200": + description: City response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a City + tags: + - Cities + /v1/cities/get-by-filter: + post: + consumes: + - application/json + description: Get Cities + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: City response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CityResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get Cities + tags: + - Cities + /v1/colors/: + post: + consumes: + - application/json + description: Create a Color + parameters: + - description: Create a Color + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateColorRequest' + responses: + "201": + description: Color response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a Color + tags: + - Colors + /v1/colors/{id}: + delete: + consumes: + - application/json + description: Delete a Color + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a Color + tags: + - Colors + get: + consumes: + - application/json + description: Get a Color + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: Color response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a Color + tags: + - Colors + put: + consumes: + - application/json + description: Update a Color + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a Color + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateColorRequest' + responses: + "200": + description: Color response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a Color + tags: + - Colors + /v1/colors/get-by-filter: + post: + consumes: + - application/json + description: Get Colors + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: Color response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_ColorResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get Colors + tags: + - Colors + /v1/companies/: + post: + consumes: + - application/json + description: Create a Company + parameters: + - description: Create a Company + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCompanyRequest' + responses: + "201": + description: Company response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a Company + tags: + - Companies + /v1/companies/{id}: + delete: + consumes: + - application/json + description: Delete a Company + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a Company + tags: + - Companies + get: + consumes: + - application/json + description: Get a Company + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: Company response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a Company + tags: + - Companies + put: + consumes: + - application/json + description: Update a Company + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a Company + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCompanyRequest' + responses: + "200": + description: Company response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a Company + tags: + - Companies + /v1/companies/get-by-filter: + post: + consumes: + - application/json + description: Get Companies + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: Company response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CompanyResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get Companies + tags: + - Companies + /v1/countries/: + post: + consumes: + - application/json + description: Create a country + parameters: + - description: Create a country + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateUpdateCountryRequest' + responses: + "201": + description: Country response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a country + tags: + - Countries + /v1/countries/{id}: + delete: + consumes: + - application/json + description: Delete a country + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a country + tags: + - Countries + get: + consumes: + - application/json + description: Get a country + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: Country response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a country + tags: + - Countries + put: + consumes: + - application/json + description: Update a country + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a country + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateUpdateCountryRequest' + responses: + "200": + description: Country response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a country + tags: + - Countries + /v1/countries/get-by-filter: + post: + consumes: + - application/json + description: Get Countries + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: Country response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CountryResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get Countries + tags: + - Countries + /v1/files/: + post: + consumes: + - application/x-www-form-urlencoded + description: Create a file + parameters: + - in: formData + name: description + required: true + type: string + - description: Create a file + in: formData + name: file + required: true + type: file + responses: + "201": + description: File response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a file + tags: + - Files + /v1/files/{id}: + delete: + consumes: + - application/json + description: Delete a file + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a file + tags: + - Files + get: + consumes: + - application/json + description: Get a file + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: File response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a file + tags: + - Files + put: + consumes: + - application/json + description: Update a file + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a file + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateFileRequest' + responses: + "200": + description: File response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a file + tags: + - Files + /v1/files/get-by-filter: + post: + consumes: + - application/json + description: Get Files + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: File response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_FileResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get Files + tags: + - Files + /v1/gearboxes/: + post: + consumes: + - application/json + description: Create a Gearbox + parameters: + - description: Create a Gearbox + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateGearboxRequest' + responses: + "201": + description: Gearbox response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a Gearbox + tags: + - Gearboxes + /v1/gearboxes/{id}: + delete: + consumes: + - application/json + description: Delete a Gearbox + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a Gearbox + tags: + - Gearboxes + get: + consumes: + - application/json + description: Get a Gearbox + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: Gearbox response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a Gearbox + tags: + - Gearboxes + put: + consumes: + - application/json + description: Update a Gearbox + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a Gearbox + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateGearboxRequest' + responses: + "200": + description: Gearbox response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a Gearbox + tags: + - Gearboxes + /v1/gearboxes/get-by-filter: + post: + consumes: + - application/json + description: Get Gearboxes + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: Gearbox response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_GearboxResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get Gearboxes + tags: + - Gearboxes + /v1/health/: + get: + consumes: + - application/json + description: Health Check + produces: + - application/json + responses: + "200": + description: Success + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Failed + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + summary: Health Check + tags: + - health + /v1/properties/: + post: + consumes: + - application/json + description: Create a Property + parameters: + - description: Create a Property + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyRequest' + responses: + "201": + description: Property response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a Property + tags: + - Properties + /v1/properties/{id}: + delete: + consumes: + - application/json + description: Delete a Property + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a Property + tags: + - Properties + get: + consumes: + - application/json + description: Get a Property + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: Property response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a Property + tags: + - Properties + put: + consumes: + - application/json + description: Update a Property + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a Property + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyRequest' + responses: + "200": + description: Property response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a Property + tags: + - Properties + /v1/properties/get-by-filter: + post: + consumes: + - application/json + description: Get Properties + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: Property response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get Properties + tags: + - Properties + /v1/property-categories/: + post: + consumes: + - application/json + description: Create a PropertyCategory + parameters: + - description: Create a PropertyCategory + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyCategoryRequest' + responses: + "201": + description: PropertyCategory response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a PropertyCategory + tags: + - PropertyCategories + /v1/property-categories/{id}: + delete: + consumes: + - application/json + description: Delete a PropertyCategory + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a PropertyCategory + tags: + - PropertyCategories + get: + consumes: + - application/json + description: Get a PropertyCategory + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: PropertyCategory response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a PropertyCategory + tags: + - PropertyCategories + put: + consumes: + - application/json + description: Update a PropertyCategory + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a PropertyCategory + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyCategoryRequest' + responses: + "200": + description: PropertyCategory response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a PropertyCategory + tags: + - PropertyCategories + /v1/property-categories/get-by-filter: + post: + consumes: + - application/json + description: Get PropertyCategories + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: PropertyCategory response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyCategoryResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get PropertyCategories + tags: + - PropertyCategories + /v1/test/binder/body: + post: + consumes: + - application/json + description: BodyBinder + parameters: + - description: person data + in: body + name: person + required: true + schema: + $ref: '#/definitions/api_handler.personData' + produces: + - application/json + responses: + "200": + description: Success + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + validationErrors: + type: object + type: object + "400": + description: Failed + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: BodyBinder + tags: + - Test + /v1/test/binder/uri/{id}/{name}: + post: + consumes: + - application/json + description: BodyBinder + parameters: + - description: user id + in: path + name: id + required: true + type: integer + - description: user name + in: path + name: name + required: true + type: string + produces: + - application/json + responses: + "200": + description: Success + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + validationErrors: + type: object + type: object + "400": + description: Failed + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: BodyBinder + tags: + - Test + /v1/test/user/{id}: + get: + consumes: + - application/json + description: UserById + parameters: + - description: user id + in: path + name: id + required: true + type: integer + produces: + - application/json + responses: + "200": + description: Success + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Failed + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + summary: UserById + tags: + - Test + /v1/users/login-by-mobile: + post: + consumes: + - application/json + description: RegisterLoginByMobileNumber + parameters: + - description: RegisterLoginByMobileRequest + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.RegisterLoginByMobileRequest' + produces: + - application/json + responses: + "201": + description: Success + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Failed + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "409": + description: Failed + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + summary: RegisterLoginByMobileNumber + tags: + - Users + /v1/users/login-by-username: + post: + consumes: + - application/json + description: LoginByUsername + parameters: + - description: LoginByUsernameRequest + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.LoginByUsernameRequest' + produces: + - application/json + responses: + "201": + description: Success + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Failed + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "409": + description: Failed + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + summary: LoginByUsername + tags: + - Users + /v1/users/register-by-username: + post: + consumes: + - application/json + description: RegisterByUsername + parameters: + - description: RegisterUserByUsernameRequest + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.RegisterUserByUsernameRequest' + produces: + - application/json + responses: + "201": + description: Success + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Failed + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "409": + description: Failed + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + summary: RegisterByUsername + tags: + - Users + /v1/users/send-otp: + post: + consumes: + - application/json + description: Send otp to user + parameters: + - description: GetOtpRequest + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GetOtpRequest' + produces: + - application/json + responses: + "201": + description: Success + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Failed + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "409": + description: Failed + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + summary: Send otp to user + tags: + - Users + /v1/years/: + post: + consumes: + - application/json + description: Create a PersianYear + parameters: + - description: Create a PersianYear + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreatePersianYearRequest' + responses: + "201": + description: PersianYear response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Create a PersianYear + tags: + - PersianYears + /v1/years/{id}: + delete: + consumes: + - application/json + description: Delete a PersianYear + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: response + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Delete a PersianYear + tags: + - PersianYears + get: + consumes: + - application/json + description: Get a PersianYear + parameters: + - description: Id + in: path + name: id + required: true + type: integer + responses: + "200": + description: PersianYear response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get a PersianYear + tags: + - PersianYears + put: + consumes: + - application/json + description: Update a PersianYear + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: Update a PersianYear + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePersianYearRequest' + responses: + "200": + description: PersianYear response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + "404": + description: Not found + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Update a PersianYear + tags: + - PersianYears + /v1/years/get-by-filter: + post: + consumes: + - application/json + description: Get PersianYears + parameters: + - description: Request + in: body + name: Request + required: true + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' + responses: + "200": + description: PersianYear response + schema: + allOf: + - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + - properties: + result: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PersianYearResponse' + type: object + "400": + description: Bad request + schema: + $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' + security: + - AuthBearer: [] + summary: Get PersianYears + tags: + - PersianYears +securityDefinitions: + AuthBearer: + in: header + name: Authorization + type: apiKey +swagger: "2.0" diff --git a/src/docs/swagger.json b/src/docs/swagger.json index 2e4d6db..ade400d 100644 --- a/src/docs/swagger.json +++ b/src/docs/swagger.json @@ -4,45 +4,45 @@ "contact": {} }, "paths": { - "/v1/car-model-colors/": { + "/v1/cities/": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Create a CarModelColor", + "description": "Create a City", "consumes": [ "application/json" ], "tags": [ - "CarModelColors" + "Cities" ], - "summary": "Create a CarModelColor", + "summary": "Create a City", "parameters": [ { - "description": "Create a CarModelColor", + "description": "Create a City", "name": "Request", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelColorRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CreateCityRequest" } } ], "responses": { "201": { - "description": "CarModelColor response", + "description": "City response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CityResponse" } } } @@ -52,27 +52,27 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-colors/get-by-filter": { + "/v1/cities/get-by-filter": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Get CarModelColors", + "description": "Get Cities", "consumes": [ "application/json" ], "tags": [ - "CarModelColors" + "Cities" ], - "summary": "Get CarModelColors", + "summary": "Get Cities", "parameters": [ { "description": "Request", @@ -80,23 +80,23 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PaginationInputWithFilter" } } ], "responses": { "200": { - "description": "CarModelColor response", + "description": "City response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CityResponse" } } } @@ -106,27 +106,27 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-colors/{id}": { + "/v1/cities/{id}": { "get": { "security": [ { "AuthBearer": [] } ], - "description": "Get a CarModelColor", + "description": "Get a City", "consumes": [ "application/json" ], "tags": [ - "CarModelColors" + "Cities" ], - "summary": "Get a CarModelColor", + "summary": "Get a City", "parameters": [ { "type": "integer", @@ -138,17 +138,17 @@ ], "responses": { "200": { - "description": "CarModelColor response", + "description": "City response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CityResponse" } } } @@ -158,13 +158,13 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -175,14 +175,14 @@ "AuthBearer": [] } ], - "description": "Update a CarModelColor", + "description": "Update a City", "consumes": [ "application/json" ], "tags": [ - "CarModelColors" + "Cities" ], - "summary": "Update a CarModelColor", + "summary": "Update a City", "parameters": [ { "type": "integer", @@ -192,28 +192,28 @@ "required": true }, { - "description": "Update a CarModelColor", + "description": "Update a City", "name": "Request", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelColorRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.UpdateCityRequest" } } ], "responses": { "200": { - "description": "CarModelColor response", + "description": "City response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CityResponse" } } } @@ -223,13 +223,13 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -240,14 +240,14 @@ "AuthBearer": [] } ], - "description": "Delete a CarModelColor", + "description": "Delete a City", "consumes": [ "application/json" ], "tags": [ - "CarModelColors" + "Cities" ], - "summary": "Delete a CarModelColor", + "summary": "Delete a City", "parameters": [ { "type": "integer", @@ -261,63 +261,63 @@ "200": { "description": "response", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-comments/": { + "/v1/companies/": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Create a CarModelComment", + "description": "Create a Company", "consumes": [ "application/json" ], "tags": [ - "CarModelComments" + "Companies" ], - "summary": "Create a CarModelComment", + "summary": "Create a Company", "parameters": [ { - "description": "Create a CarModelComment", + "description": "Create a Company", "name": "Request", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelCommentRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CreateCompanyRequest" } } ], "responses": { "201": { - "description": "CarModelComment response", + "description": "Company response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse" } } } @@ -327,27 +327,27 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-comments/get-by-filter": { + "/v1/companies/get-by-filter": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Get CarModelComments", + "description": "Get Companies", "consumes": [ "application/json" ], "tags": [ - "CarModelComments" + "Companies" ], - "summary": "Get CarModelComments", + "summary": "Get Companies", "parameters": [ { "description": "Request", @@ -355,23 +355,23 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PaginationInputWithFilter" } } ], "responses": { "200": { - "description": "CarModelComment response", + "description": "Company response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelCommentResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CompanyResponse" } } } @@ -381,27 +381,27 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-comments/{id}": { + "/v1/companies/{id}": { "get": { "security": [ { "AuthBearer": [] } ], - "description": "Get a CarModelComment", + "description": "Get a Company", "consumes": [ "application/json" ], "tags": [ - "CarModelComments" + "Companies" ], - "summary": "Get a CarModelComment", + "summary": "Get a Company", "parameters": [ { "type": "integer", @@ -413,17 +413,17 @@ ], "responses": { "200": { - "description": "CarModelComment response", + "description": "Company response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse" } } } @@ -433,13 +433,13 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -450,14 +450,14 @@ "AuthBearer": [] } ], - "description": "Update a CarModelComment", + "description": "Update a Company", "consumes": [ "application/json" ], "tags": [ - "CarModelComments" + "Companies" ], - "summary": "Update a CarModelComment", + "summary": "Update a Company", "parameters": [ { "type": "integer", @@ -467,28 +467,28 @@ "required": true }, { - "description": "Update a CarModelComment", + "description": "Update a Company", "name": "Request", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelCommentRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.UpdateCompanyRequest" } } ], "responses": { "200": { - "description": "CarModelComment response", + "description": "Company response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse" } } } @@ -498,13 +498,13 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -515,14 +515,14 @@ "AuthBearer": [] } ], - "description": "Delete a CarModelComment", + "description": "Delete a Company", "consumes": [ "application/json" ], "tags": [ - "CarModelComments" + "Companies" ], - "summary": "Delete a CarModelComment", + "summary": "Delete a Company", "parameters": [ { "type": "integer", @@ -536,63 +536,67 @@ "200": { "description": "response", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-images/": { + "/v1/files/": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Create a CarModelImage", + "description": "Create a file", "consumes": [ - "application/json" + "application/x-www-form-urlencoded" ], "tags": [ - "CarModelImages" + "Files" ], - "summary": "Create a CarModelImage", + "summary": "Create a file", "parameters": [ { - "description": "Create a CarModelImage", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelImageRequest" - } + "type": "string", + "name": "description", + "in": "formData", + "required": true + }, + { + "type": "file", + "description": "Create a file", + "name": "file", + "in": "formData", + "required": true } ], "responses": { "201": { - "description": "CarModelImage response", + "description": "File response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.FileResponse" } } } @@ -602,27 +606,27 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-images/get-by-filter": { + "/v1/files/get-by-filter": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Get CarModelImages", + "description": "Get Files", "consumes": [ "application/json" ], "tags": [ - "CarModelImages" + "Files" ], - "summary": "Get CarModelImages", + "summary": "Get Files", "parameters": [ { "description": "Request", @@ -630,23 +634,23 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PaginationInputWithFilter" } } ], "responses": { "200": { - "description": "CarModelImage response", + "description": "File response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelImageResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_FileResponse" } } } @@ -656,27 +660,27 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-images/{id}": { + "/v1/files/{id}": { "get": { "security": [ { "AuthBearer": [] } ], - "description": "Get a CarModelImage", + "description": "Get a file", "consumes": [ "application/json" ], "tags": [ - "CarModelImages" + "Files" ], - "summary": "Get a CarModelImage", + "summary": "Get a file", "parameters": [ { "type": "integer", @@ -688,17 +692,17 @@ ], "responses": { "200": { - "description": "CarModelImage response", + "description": "File response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.FileResponse" } } } @@ -708,13 +712,7 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -725,14 +723,14 @@ "AuthBearer": [] } ], - "description": "Update a CarModelImage", + "description": "Update a file", "consumes": [ "application/json" ], "tags": [ - "CarModelImages" + "Files" ], - "summary": "Update a CarModelImage", + "summary": "Update a file", "parameters": [ { "type": "integer", @@ -742,28 +740,28 @@ "required": true }, { - "description": "Update a CarModelImage", + "description": "Update a file", "name": "Request", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelImageRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.UpdateFileRequest" } } ], "responses": { "200": { - "description": "CarModelImage response", + "description": "File response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.FileResponse" } } } @@ -773,13 +771,7 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -790,14 +782,14 @@ "AuthBearer": [] } ], - "description": "Delete a CarModelImage", + "description": "Delete a file", "consumes": [ "application/json" ], "tags": [ - "CarModelImages" + "Files" ], - "summary": "Delete a CarModelImage", + "summary": "Delete a file", "parameters": [ { "type": "integer", @@ -811,63 +803,86 @@ "200": { "description": "response", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" + } + } + } + } + }, + "/v1/health/": { + "get": { + "description": "Health Check", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "health" + ], + "summary": "Health Check", + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, - "404": { - "description": "Not found", + "400": { + "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-price-histories/": { + "/v1/properties/": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Create a CarModelPriceHistory", + "description": "Create a Property", "consumes": [ "application/json" ], "tags": [ - "CarModelPriceHistories" + "Properties" ], - "summary": "Create a CarModelPriceHistory", + "summary": "Create a Property", "parameters": [ { - "description": "Create a CarModelPriceHistory", + "description": "Create a Property", "name": "Request", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPriceHistoryRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CreatePropertyRequest" } } ], "responses": { "201": { - "description": "CarModelPriceHistory response", + "description": "Property response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse" } } } @@ -877,27 +892,27 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-price-histories/get-by-filter": { + "/v1/properties/get-by-filter": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Get CarModelPriceHistories", + "description": "Get Properties", "consumes": [ "application/json" ], "tags": [ - "CarModelPriceHistories" + "Properties" ], - "summary": "Get CarModelPriceHistories", + "summary": "Get Properties", "parameters": [ { "description": "Request", @@ -905,23 +920,23 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PaginationInputWithFilter" } } ], "responses": { "200": { - "description": "CarModelPriceHistory response", + "description": "Property response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPriceHistoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_PropertyResponse" } } } @@ -931,27 +946,27 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-price-histories/{id}": { + "/v1/properties/{id}": { "get": { "security": [ { "AuthBearer": [] } ], - "description": "Get a CarModelPriceHistory", + "description": "Get a Property", "consumes": [ "application/json" ], "tags": [ - "CarModelPriceHistories" + "Properties" ], - "summary": "Get a CarModelPriceHistory", + "summary": "Get a Property", "parameters": [ { "type": "integer", @@ -963,17 +978,17 @@ ], "responses": { "200": { - "description": "CarModelPriceHistory response", + "description": "Property response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse" } } } @@ -983,13 +998,13 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -1000,14 +1015,14 @@ "AuthBearer": [] } ], - "description": "Update a CarModelPriceHistory", + "description": "Update a Property", "consumes": [ "application/json" ], "tags": [ - "CarModelPriceHistories" + "Properties" ], - "summary": "Update a CarModelPriceHistory", + "summary": "Update a Property", "parameters": [ { "type": "integer", @@ -1017,28 +1032,28 @@ "required": true }, { - "description": "Update a CarModelPriceHistory", + "description": "Update a Property", "name": "Request", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPriceHistoryRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.UpdatePropertyRequest" } } ], "responses": { "200": { - "description": "CarModelPriceHistory response", + "description": "Property response", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse" } } } @@ -1048,13 +1063,13 @@ "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -1065,14 +1080,14 @@ "AuthBearer": [] } ], - "description": "Delete a CarModelPriceHistory", + "description": "Delete a Property", "consumes": [ "application/json" ], "tags": [ - "CarModelPriceHistories" + "Properties" ], - "summary": "Delete a CarModelPriceHistory", + "summary": "Delete a Property", "parameters": [ { "type": "integer", @@ -1086,63 +1101,66 @@ "200": { "description": "response", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Bad request", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "404": { "description": "Not found", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-properties/": { + "/v1/test/binder/body": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Create a CarModelProperty", + "description": "BodyBinder", "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "tags": [ - "CarModelProperties" + "Test" ], - "summary": "Create a CarModelProperty", + "summary": "BodyBinder", "parameters": [ { - "description": "Create a CarModelProperty", - "name": "Request", + "description": "person data", + "name": "person", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPropertyRequest" + "$ref": "#/definitions/api_handler.personData" } } ], "responses": { - "201": { - "description": "CarModelProperty response", + "200": { + "description": "Success", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse" + "validationErrors": { + "type": "object" } } } @@ -1150,53 +1168,61 @@ } }, "400": { - "description": "Bad request", + "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-properties/get-by-filter": { + "/v1/test/binder/uri/{id}/{name}": { "post": { "security": [ { "AuthBearer": [] } ], - "description": "Get CarModelProperties", + "description": "BodyBinder", "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "tags": [ - "CarModelProperties" + "Test" ], - "summary": "Get CarModelProperties", + "summary": "BodyBinder", "parameters": [ { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } + "type": "integer", + "description": "user id", + "name": "id", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "user name", + "name": "name", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "CarModelProperty response", + "description": "Success", "schema": { "allOf": [ { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" }, { "type": "object", "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPropertyResponse" + "validationErrors": { + "type": "object" } } } @@ -1204,33 +1230,31 @@ } }, "400": { - "description": "Bad request", + "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } } }, - "/v1/car-model-properties/{id}": { + "/v1/test/user/{id}": { "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a CarModelProperty", + "description": "UserById", "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "tags": [ - "CarModelProperties" + "Test" ], - "summary": "Get a CarModelProperty", + "summary": "UserById", "parameters": [ { "type": "integer", - "description": "Id", + "description": "user id", "name": "id", "in": "path", "required": true @@ -1238,3339 +1262,33 @@ ], "responses": { "200": { - "description": "CarModelProperty response", + "description": "Success", "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse" - } - } - } - ] + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", + "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a CarModelProperty", + } + }, + "/v1/users/login-by-mobile": { + "post": { + "description": "RegisterLoginByMobileNumber", "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "tags": [ - "CarModelProperties" + "Users" ], - "summary": "Update a CarModelProperty", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a CarModelProperty", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPropertyRequest" - } - } - ], - "responses": { - "200": { - "description": "CarModelProperty response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a CarModelProperty", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModelProperties" - ], - "summary": "Delete a CarModelProperty", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-model-years/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a CarModelYear", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModelYears" - ], - "summary": "Create a CarModelYear", - "parameters": [ - { - "description": "Create a CarModelYear", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelYearRequest" - } - } - ], - "responses": { - "201": { - "description": "CarModelYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-model-years/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get CarModelYears", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModelYears" - ], - "summary": "Get CarModelYears", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "CarModelYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-model-years/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a CarModelYear", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModelYears" - ], - "summary": "Get a CarModelYear", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "CarModelYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a CarModelYear", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModelYears" - ], - "summary": "Update a CarModelYear", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a CarModelYear", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelYearRequest" - } - } - ], - "responses": { - "200": { - "description": "CarModelYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a CarModelYear", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModelYears" - ], - "summary": "Delete a CarModelYear", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-models/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a CarModel", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModels" - ], - "summary": "Create a CarModel", - "parameters": [ - { - "description": "Create a CarModel", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelRequest" - } - } - ], - "responses": { - "201": { - "description": "CarModel response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-models/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get CarModels", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModels" - ], - "summary": "Get CarModels", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "CarModel response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-models/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a CarModel", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModels" - ], - "summary": "Get a CarModel", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "CarModel response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a CarModel", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModels" - ], - "summary": "Update a CarModel", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a CarModel", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelRequest" - } - } - ], - "responses": { - "200": { - "description": "CarModel response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a CarModel", - "consumes": [ - "application/json" - ], - "tags": [ - "CarModels" - ], - "summary": "Delete a CarModel", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-types/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a CarType", - "consumes": [ - "application/json" - ], - "tags": [ - "CarTypes" - ], - "summary": "Create a CarType", - "parameters": [ - { - "description": "Create a CarType", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarTypeRequest" - } - } - ], - "responses": { - "201": { - "description": "CarType response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-types/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get CarTypes", - "consumes": [ - "application/json" - ], - "tags": [ - "CarTypes" - ], - "summary": "Get CarTypes", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "CarType response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarTypeResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/car-types/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a CarType", - "consumes": [ - "application/json" - ], - "tags": [ - "CarTypes" - ], - "summary": "Get a CarType", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "CarType response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a CarType", - "consumes": [ - "application/json" - ], - "tags": [ - "CarTypes" - ], - "summary": "Update a CarType", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a CarType", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarTypeRequest" - } - } - ], - "responses": { - "200": { - "description": "CarType response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a CarType", - "consumes": [ - "application/json" - ], - "tags": [ - "CarTypes" - ], - "summary": "Delete a CarType", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/cities/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a City", - "consumes": [ - "application/json" - ], - "tags": [ - "Cities" - ], - "summary": "Create a City", - "parameters": [ - { - "description": "Create a City", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCityRequest" - } - } - ], - "responses": { - "201": { - "description": "City response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/cities/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get Cities", - "consumes": [ - "application/json" - ], - "tags": [ - "Cities" - ], - "summary": "Get Cities", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "City response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CityResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/cities/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a City", - "consumes": [ - "application/json" - ], - "tags": [ - "Cities" - ], - "summary": "Get a City", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "City response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a City", - "consumes": [ - "application/json" - ], - "tags": [ - "Cities" - ], - "summary": "Update a City", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a City", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCityRequest" - } - } - ], - "responses": { - "200": { - "description": "City response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a City", - "consumes": [ - "application/json" - ], - "tags": [ - "Cities" - ], - "summary": "Delete a City", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/colors/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a Color", - "consumes": [ - "application/json" - ], - "tags": [ - "Colors" - ], - "summary": "Create a Color", - "parameters": [ - { - "description": "Create a Color", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateColorRequest" - } - } - ], - "responses": { - "201": { - "description": "Color response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/colors/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get Colors", - "consumes": [ - "application/json" - ], - "tags": [ - "Colors" - ], - "summary": "Get Colors", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "Color response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_ColorResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/colors/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a Color", - "consumes": [ - "application/json" - ], - "tags": [ - "Colors" - ], - "summary": "Get a Color", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Color response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a Color", - "consumes": [ - "application/json" - ], - "tags": [ - "Colors" - ], - "summary": "Update a Color", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a Color", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateColorRequest" - } - } - ], - "responses": { - "200": { - "description": "Color response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a Color", - "consumes": [ - "application/json" - ], - "tags": [ - "Colors" - ], - "summary": "Delete a Color", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/companies/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a Company", - "consumes": [ - "application/json" - ], - "tags": [ - "Companies" - ], - "summary": "Create a Company", - "parameters": [ - { - "description": "Create a Company", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCompanyRequest" - } - } - ], - "responses": { - "201": { - "description": "Company response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/companies/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get Companies", - "consumes": [ - "application/json" - ], - "tags": [ - "Companies" - ], - "summary": "Get Companies", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "Company response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CompanyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/companies/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a Company", - "consumes": [ - "application/json" - ], - "tags": [ - "Companies" - ], - "summary": "Get a Company", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Company response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a Company", - "consumes": [ - "application/json" - ], - "tags": [ - "Companies" - ], - "summary": "Update a Company", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a Company", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCompanyRequest" - } - } - ], - "responses": { - "200": { - "description": "Company response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a Company", - "consumes": [ - "application/json" - ], - "tags": [ - "Companies" - ], - "summary": "Delete a Company", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/countries/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a country", - "consumes": [ - "application/json" - ], - "tags": [ - "Countries" - ], - "summary": "Create a country", - "parameters": [ - { - "description": "Create a country", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateUpdateCountryRequest" - } - } - ], - "responses": { - "201": { - "description": "Country response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/countries/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get Countries", - "consumes": [ - "application/json" - ], - "tags": [ - "Countries" - ], - "summary": "Get Countries", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "Country response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CountryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/countries/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a country", - "consumes": [ - "application/json" - ], - "tags": [ - "Countries" - ], - "summary": "Get a country", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Country response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a country", - "consumes": [ - "application/json" - ], - "tags": [ - "Countries" - ], - "summary": "Update a country", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a country", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateUpdateCountryRequest" - } - } - ], - "responses": { - "200": { - "description": "Country response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a country", - "consumes": [ - "application/json" - ], - "tags": [ - "Countries" - ], - "summary": "Delete a country", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/files/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a file", - "consumes": [ - "application/x-www-form-urlencoded" - ], - "tags": [ - "Files" - ], - "summary": "Create a file", - "parameters": [ - { - "type": "string", - "name": "description", - "in": "formData", - "required": true - }, - { - "type": "file", - "description": "Create a file", - "name": "file", - "in": "formData", - "required": true - } - ], - "responses": { - "201": { - "description": "File response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/files/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get Files", - "consumes": [ - "application/json" - ], - "tags": [ - "Files" - ], - "summary": "Get Files", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "File response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_FileResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/files/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a file", - "consumes": [ - "application/json" - ], - "tags": [ - "Files" - ], - "summary": "Get a file", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "File response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a file", - "consumes": [ - "application/json" - ], - "tags": [ - "Files" - ], - "summary": "Update a file", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a file", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateFileRequest" - } - } - ], - "responses": { - "200": { - "description": "File response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a file", - "consumes": [ - "application/json" - ], - "tags": [ - "Files" - ], - "summary": "Delete a file", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/gearboxes/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a Gearbox", - "consumes": [ - "application/json" - ], - "tags": [ - "Gearboxes" - ], - "summary": "Create a Gearbox", - "parameters": [ - { - "description": "Create a Gearbox", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateGearboxRequest" - } - } - ], - "responses": { - "201": { - "description": "Gearbox response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/gearboxes/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get Gearboxes", - "consumes": [ - "application/json" - ], - "tags": [ - "Gearboxes" - ], - "summary": "Get Gearboxes", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "Gearbox response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_GearboxResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/gearboxes/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a Gearbox", - "consumes": [ - "application/json" - ], - "tags": [ - "Gearboxes" - ], - "summary": "Get a Gearbox", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Gearbox response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a Gearbox", - "consumes": [ - "application/json" - ], - "tags": [ - "Gearboxes" - ], - "summary": "Update a Gearbox", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a Gearbox", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateGearboxRequest" - } - } - ], - "responses": { - "200": { - "description": "Gearbox response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a Gearbox", - "consumes": [ - "application/json" - ], - "tags": [ - "Gearboxes" - ], - "summary": "Delete a Gearbox", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/health/": { - "get": { - "description": "Health Check", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "health" - ], - "summary": "Health Check", - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Failed", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/properties/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a Property", - "consumes": [ - "application/json" - ], - "tags": [ - "Properties" - ], - "summary": "Create a Property", - "parameters": [ - { - "description": "Create a Property", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyRequest" - } - } - ], - "responses": { - "201": { - "description": "Property response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/properties/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get Properties", - "consumes": [ - "application/json" - ], - "tags": [ - "Properties" - ], - "summary": "Get Properties", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "Property response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/properties/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a Property", - "consumes": [ - "application/json" - ], - "tags": [ - "Properties" - ], - "summary": "Get a Property", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Property response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a Property", - "consumes": [ - "application/json" - ], - "tags": [ - "Properties" - ], - "summary": "Update a Property", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a Property", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyRequest" - } - } - ], - "responses": { - "200": { - "description": "Property response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a Property", - "consumes": [ - "application/json" - ], - "tags": [ - "Properties" - ], - "summary": "Delete a Property", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/property-categories/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a PropertyCategory", - "consumes": [ - "application/json" - ], - "tags": [ - "PropertyCategories" - ], - "summary": "Create a PropertyCategory", - "parameters": [ - { - "description": "Create a PropertyCategory", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyCategoryRequest" - } - } - ], - "responses": { - "201": { - "description": "PropertyCategory response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/property-categories/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get PropertyCategories", - "consumes": [ - "application/json" - ], - "tags": [ - "PropertyCategories" - ], - "summary": "Get PropertyCategories", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "PropertyCategory response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyCategoryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/property-categories/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a PropertyCategory", - "consumes": [ - "application/json" - ], - "tags": [ - "PropertyCategories" - ], - "summary": "Get a PropertyCategory", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "PropertyCategory response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a PropertyCategory", - "consumes": [ - "application/json" - ], - "tags": [ - "PropertyCategories" - ], - "summary": "Update a PropertyCategory", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a PropertyCategory", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyCategoryRequest" - } - } - ], - "responses": { - "200": { - "description": "PropertyCategory response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a PropertyCategory", - "consumes": [ - "application/json" - ], - "tags": [ - "PropertyCategories" - ], - "summary": "Delete a PropertyCategory", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/test/binder/body": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "BodyBinder", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Test" - ], - "summary": "BodyBinder", - "parameters": [ - { - "description": "person data", - "name": "person", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/api_handler.personData" - } - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "validationErrors": { - "type": "object" - } - } - } - ] - } - }, - "400": { - "description": "Failed", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/test/binder/uri/{id}/{name}": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "BodyBinder", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Test" - ], - "summary": "BodyBinder", - "parameters": [ - { - "type": "integer", - "description": "user id", - "name": "id", - "in": "path", - "required": true - }, - { - "type": "string", - "description": "user name", - "name": "name", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "validationErrors": { - "type": "object" - } - } - } - ] - } - }, - "400": { - "description": "Failed", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/test/user/{id}": { - "get": { - "description": "UserById", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Test" - ], - "summary": "UserById", - "parameters": [ - { - "type": "integer", - "description": "user id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Failed", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/users/login-by-mobile": { - "post": { - "description": "RegisterLoginByMobileNumber", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Users" - ], - "summary": "RegisterLoginByMobileNumber", + "summary": "RegisterLoginByMobileNumber", "parameters": [ { "description": "RegisterLoginByMobileRequest", @@ -4578,7 +1296,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.RegisterLoginByMobileRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.RegisterLoginByMobileRequest" } } ], @@ -4586,19 +1304,19 @@ "201": { "description": "Success", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "409": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -4624,7 +1342,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.LoginByUsernameRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.LoginByUsernameRequest" } } ], @@ -4632,19 +1350,19 @@ "201": { "description": "Success", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "409": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -4670,7 +1388,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.RegisterUserByUsernameRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.RegisterUserByUsernameRequest" } } ], @@ -4678,19 +1396,19 @@ "201": { "description": "Success", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "409": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -4716,7 +1434,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GetOtpRequest" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.GetOtpRequest" } } ], @@ -4724,294 +1442,19 @@ "201": { "description": "Success", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "400": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } }, "409": { "description": "Failed", "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/years/": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Create a PersianYear", - "consumes": [ - "application/json" - ], - "tags": [ - "PersianYears" - ], - "summary": "Create a PersianYear", - "parameters": [ - { - "description": "Create a PersianYear", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreatePersianYearRequest" - } - } - ], - "responses": { - "201": { - "description": "PersianYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/years/get-by-filter": { - "post": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get PersianYears", - "consumes": [ - "application/json" - ], - "tags": [ - "PersianYears" - ], - "summary": "Get PersianYears", - "parameters": [ - { - "description": "Request", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter" - } - } - ], - "responses": { - "200": { - "description": "PersianYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PersianYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - } - }, - "/v1/years/{id}": { - "get": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Get a PersianYear", - "consumes": [ - "application/json" - ], - "tags": [ - "PersianYears" - ], - "summary": "Get a PersianYear", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "PersianYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "put": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Update a PersianYear", - "consumes": [ - "application/json" - ], - "tags": [ - "PersianYears" - ], - "summary": "Update a PersianYear", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - }, - { - "description": "Update a PersianYear", - "name": "Request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePersianYearRequest" - } - } - ], - "responses": { - "200": { - "description": "PersianYear response", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - }, - { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse" - } - } - } - ] - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - } - } - }, - "delete": { - "security": [ - { - "AuthBearer": [] - } - ], - "description": "Delete a PersianYear", - "consumes": [ - "application/json" - ], - "tags": [ - "PersianYears" - ], - "summary": "Delete a PersianYear", - "parameters": [ - { - "type": "integer", - "description": "Id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "response", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "400": { - "description": "Bad request", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse" } } } @@ -5044,18 +1487,18 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarModelColorResponse": { "type": "object", "properties": { "color": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.ColorResponse" }, "id": { "type": "integer" } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarModelCommentResponse": { "type": "object", "properties": { "carModelId": { @@ -5068,11 +1511,11 @@ "type": "string" }, "user": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UserResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.UserResponse" } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarModelImageResponse": { "type": "object", "properties": { "carModelId": { @@ -5082,14 +1525,14 @@ "type": "integer" }, "image": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.FileResponse" }, "isMainImage": { "type": "boolean" } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarModelPriceHistoryResponse": { "type": "object", "properties": { "carModelYearId": { @@ -5106,7 +1549,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarModelPropertyResponse": { "type": "object", "properties": { "carModelId": { @@ -5116,54 +1559,54 @@ "type": "integer" }, "property": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse" }, "value": { "type": "string" } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarModelResponse": { "type": "object", "properties": { "carModelColors": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelColorResponse" } }, "carModelComments": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelCommentResponse" } }, "carModelImages": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelImageResponse" } }, "carModelProperties": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelPropertyResponse" } }, "carModelYears": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelYearResponse" } }, "carType": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarTypeResponse" }, "company": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse" }, "gearbox": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.GearboxResponse" }, "id": { "type": "integer" @@ -5173,7 +1616,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarModelYearResponse": { "type": "object", "properties": { "carModelId": { @@ -5182,18 +1625,18 @@ "carModelPriceHistories": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelPriceHistoryResponse" } }, "id": { "type": "integer" }, "persianYear": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearWithoutDateResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PersianYearWithoutDateResponse" } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CarTypeResponse": { "type": "object", "properties": { "id": { @@ -5204,11 +1647,11 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CityResponse": { "type": "object", "properties": { "country": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CountryResponse" }, "id": { "type": "integer" @@ -5218,7 +1661,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.ColorResponse": { "type": "object", "properties": { "hexCode": { @@ -5232,11 +1675,11 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse": { "type": "object", "properties": { "country": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CountryResponse" }, "id": { "type": "integer" @@ -5246,19 +1689,19 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.CountryResponse": { "type": "object", "properties": { "cities": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CityResponse" } }, "companies": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse" } }, "id": { @@ -5269,7 +1712,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelColorRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelColorRequest": { "type": "object", "required": [ "carModelId", @@ -5284,7 +1727,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelCommentRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelCommentRequest": { "type": "object", "required": [ "carModelId", @@ -5303,7 +1746,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelImageRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelImageRequest": { "type": "object", "required": [ "carModelId", @@ -5321,7 +1764,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPriceHistoryRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelPriceHistoryRequest": { "type": "object", "required": [ "carModelYearId", @@ -5340,7 +1783,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPropertyRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelPropertyRequest": { "type": "object", "required": [ "carModelId", @@ -5360,7 +1803,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelRequest": { "type": "object", "required": [ "carTypeId", @@ -5385,7 +1828,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelYearRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelYearRequest": { "type": "object", "required": [ "carModelId", @@ -5400,7 +1843,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarTypeRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCarTypeRequest": { "type": "object", "required": [ "name" @@ -5413,7 +1856,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCityRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCityRequest": { "type": "object", "required": [ "countryId", @@ -5430,7 +1873,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateColorRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateColorRequest": { "type": "object", "properties": { "hexCode": { @@ -5445,7 +1888,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateCompanyRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateCompanyRequest": { "type": "object", "required": [ "countryId", @@ -5462,7 +1905,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateGearboxRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateGearboxRequest": { "type": "object", "required": [ "name" @@ -5475,7 +1918,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreatePersianYearRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreatePersianYearRequest": { "type": "object", "properties": { "endAt": { @@ -5494,7 +1937,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyCategoryRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreatePropertyCategoryRequest": { "type": "object", "required": [ "name" @@ -5511,7 +1954,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreatePropertyRequest": { "type": "object", "required": [ "categoryId", @@ -5544,7 +1987,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.CreateUpdateCountryRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.CreateUpdateCountryRequest": { "type": "object", "required": [ "name" @@ -5557,7 +2000,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.FileResponse": { "type": "object", "properties": { "description": { @@ -5577,7 +2020,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.GearboxResponse": { "type": "object", "properties": { "id": { @@ -5588,7 +2031,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.GetOtpRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.GetOtpRequest": { "type": "object", "required": [ "mobileNumber" @@ -5601,7 +2044,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.LoginByUsernameRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.LoginByUsernameRequest": { "type": "object", "required": [ "password", @@ -5618,7 +2061,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.PersianYearResponse": { "type": "object", "properties": { "endAt": { @@ -5638,7 +2081,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearWithoutDateResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.PersianYearWithoutDateResponse": { "type": "object", "properties": { "id": { @@ -5652,7 +2095,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.PropertyCategoryResponse": { "type": "object", "properties": { "icon": { @@ -5667,16 +2110,16 @@ "properties": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse" } } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse": { "type": "object", "properties": { "category": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyCategoryResponse" }, "dataType": { "type": "string" @@ -5698,7 +2141,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.RegisterLoginByMobileRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.RegisterLoginByMobileRequest": { "type": "object", "required": [ "mobileNumber", @@ -5717,7 +2160,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.RegisterUserByUsernameRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.RegisterUserByUsernameRequest": { "type": "object", "required": [ "firstName", @@ -5748,7 +2191,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelColorRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelColorRequest": { "type": "object", "properties": { "carModelId": { @@ -5759,7 +2202,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelCommentRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelCommentRequest": { "type": "object", "required": [ "message" @@ -5771,7 +2214,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelImageRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelImageRequest": { "type": "object", "properties": { "isMainImage": { @@ -5779,7 +2222,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPriceHistoryRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelPriceHistoryRequest": { "type": "object", "properties": { "price": { @@ -5790,7 +2233,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPropertyRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelPropertyRequest": { "type": "object", "required": [ "value" @@ -5802,7 +2245,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelRequest": { "type": "object", "properties": { "carTypeId": { @@ -5819,7 +2262,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelYearRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelYearRequest": { "type": "object", "properties": { "carModelId": { @@ -5830,7 +2273,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarTypeRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarTypeRequest": { "type": "object", "required": [ "name" @@ -5843,7 +2286,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCityRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCityRequest": { "type": "object", "properties": { "countryId": { @@ -5856,7 +2299,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateColorRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateColorRequest": { "type": "object", "properties": { "hexCode": { @@ -5871,7 +2314,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCompanyRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateCompanyRequest": { "type": "object", "properties": { "countryId": { @@ -5884,7 +2327,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateFileRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateFileRequest": { "type": "object", "properties": { "description": { @@ -5892,7 +2335,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdateGearboxRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdateGearboxRequest": { "type": "object", "required": [ "name" @@ -5905,7 +2348,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePersianYearRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdatePersianYearRequest": { "type": "object", "properties": { "endAt": { @@ -5924,7 +2367,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyCategoryRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdatePropertyCategoryRequest": { "type": "object", "properties": { "icon": { @@ -5935,7 +2378,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyRequest": { + "github_com_Noorwahid717_restful-api-go_api_dto.UpdatePropertyRequest": { "type": "object", "properties": { "categoryId": { @@ -5962,7 +2405,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_dto.UserResponse": { + "github_com_Noorwahid717_restful-api-go_api_dto.UserResponse": { "type": "object", "properties": { "email": { @@ -5982,13 +2425,13 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse": { + "github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse": { "type": "object", "properties": { "error": {}, "result": {}, "resultCode": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.ResultCode" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_helper.ResultCode" }, "success": { "type": "boolean" @@ -5996,12 +2439,12 @@ "validationErrors": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_validation.ValidationError" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_validation.ValidationError" } } } }, - "github_com_naeemaei_golang-clean-web-api_api_helper.ResultCode": { + "github_com_Noorwahid717_restful-api-go_api_helper.ResultCode": { "type": "integer", "enum": [ 0, @@ -6026,7 +2469,7 @@ "InternalError" ] }, - "github_com_naeemaei_golang-clean-web-api_api_validation.ValidationError": { + "github_com_Noorwahid717_restful-api-go_api_validation.ValidationError": { "type": "object", "properties": { "message": { @@ -6043,7 +2486,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.Filter": { + "github_com_Noorwahid717_restful-api-go_domain_filter.Filter": { "type": "object", "properties": { "filterType": { @@ -6062,7 +2505,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelColorResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelColorResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6074,7 +2517,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelColorResponse" } }, "pageNumber": { @@ -6091,7 +2534,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelCommentResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelCommentResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6103,7 +2546,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelCommentResponse" } }, "pageNumber": { @@ -6120,7 +2563,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelImageResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelImageResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6132,7 +2575,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelImageResponse" } }, "pageNumber": { @@ -6149,7 +2592,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPriceHistoryResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelPriceHistoryResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6161,7 +2604,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelPriceHistoryResponse" } }, "pageNumber": { @@ -6178,7 +2621,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPropertyResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelPropertyResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6190,7 +2633,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelPropertyResponse" } }, "pageNumber": { @@ -6207,7 +2650,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6219,7 +2662,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelResponse" } }, "pageNumber": { @@ -6236,7 +2679,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelYearResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelYearResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6248,7 +2691,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelYearResponse" } }, "pageNumber": { @@ -6265,7 +2708,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarTypeResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarTypeResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6277,7 +2720,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarTypeResponse" } }, "pageNumber": { @@ -6294,7 +2737,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CityResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CityResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6306,7 +2749,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CityResponse" } }, "pageNumber": { @@ -6323,7 +2766,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_ColorResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_ColorResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6335,7 +2778,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.ColorResponse" } }, "pageNumber": { @@ -6352,7 +2795,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CompanyResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CompanyResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6364,7 +2807,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse" } }, "pageNumber": { @@ -6381,7 +2824,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CountryResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CountryResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6393,7 +2836,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CountryResponse" } }, "pageNumber": { @@ -6410,7 +2853,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_FileResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_FileResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6422,7 +2865,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.FileResponse" } }, "pageNumber": { @@ -6439,7 +2882,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_GearboxResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_GearboxResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6451,7 +2894,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.GearboxResponse" } }, "pageNumber": { @@ -6468,7 +2911,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PersianYearResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_PersianYearResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6480,7 +2923,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PersianYearResponse" } }, "pageNumber": { @@ -6497,7 +2940,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyCategoryResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_PropertyCategoryResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6509,7 +2952,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyCategoryResponse" } }, "pageNumber": { @@ -6526,7 +2969,7 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyResponse": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_PropertyResponse": { "type": "object", "properties": { "hasNextPage": { @@ -6538,7 +2981,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse" } }, "pageNumber": { @@ -6555,13 +2998,13 @@ } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter": { + "github_com_Noorwahid717_restful-api-go_domain_filter.PaginationInputWithFilter": { "type": "object", "properties": { "filter": { "type": "object", "additionalProperties": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.Filter" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.Filter" } }, "pageNumber": { @@ -6573,12 +3016,12 @@ "sort": { "type": "array", "items": { - "$ref": "#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.Sort" + "$ref": "#/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.Sort" } } } }, - "github_com_naeemaei_golang-clean-web-api_domain_filter.Sort": { + "github_com_Noorwahid717_restful-api-go_domain_filter.Sort": { "type": "object", "properties": { "colId": { diff --git a/src/docs/swagger.yaml b/src/docs/swagger.yaml index 369d5a1..0704deb 100644 --- a/src/docs/swagger.yaml +++ b/src/docs/swagger.yaml @@ -1,31 +1,1014 @@ +swagger: '2.0' +info: + contact: {} +paths: + /v1/cities/: + post: + security: + - AuthBearer: [] + description: Create a City + consumes: + - application/json + tags: + - Cities + summary: Create a City + parameters: + - description: Create a City + name: Request + in: body + required: true + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CreateCityRequest + responses: + '201': + description: City response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CityResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/cities/get-by-filter: + post: + security: + - AuthBearer: [] + description: Get Cities + consumes: + - application/json + tags: + - Cities + summary: Get Cities + parameters: + - description: Request + name: Request + in: body + required: true + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PaginationInputWithFilter + responses: + '200': + description: City response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CityResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/cities/{id}: + get: + security: + - AuthBearer: [] + description: Get a City + consumes: + - application/json + tags: + - Cities + summary: Get a City + parameters: + - type: integer + description: Id + name: id + in: path + required: true + responses: + '200': + description: City response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CityResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '404': + description: Not found + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + put: + security: + - AuthBearer: [] + description: Update a City + consumes: + - application/json + tags: + - Cities + summary: Update a City + parameters: + - type: integer + description: Id + name: id + in: path + required: true + - description: Update a City + name: Request + in: body + required: true + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.UpdateCityRequest + responses: + '200': + description: City response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CityResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '404': + description: Not found + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + delete: + security: + - AuthBearer: [] + description: Delete a City + consumes: + - application/json + tags: + - Cities + summary: Delete a City + parameters: + - type: integer + description: Id + name: id + in: path + required: true + responses: + '200': + description: response + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '404': + description: Not found + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/companies/: + post: + security: + - AuthBearer: [] + description: Create a Company + consumes: + - application/json + tags: + - Companies + summary: Create a Company + parameters: + - description: Create a Company + name: Request + in: body + required: true + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CreateCompanyRequest + responses: + '201': + description: Company response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/companies/get-by-filter: + post: + security: + - AuthBearer: [] + description: Get Companies + consumes: + - application/json + tags: + - Companies + summary: Get Companies + parameters: + - description: Request + name: Request + in: body + required: true + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PaginationInputWithFilter + responses: + '200': + description: Company response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CompanyResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/companies/{id}: + get: + security: + - AuthBearer: [] + description: Get a Company + consumes: + - application/json + tags: + - Companies + summary: Get a Company + parameters: + - type: integer + description: Id + name: id + in: path + required: true + responses: + '200': + description: Company response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '404': + description: Not found + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + put: + security: + - AuthBearer: [] + description: Update a Company + consumes: + - application/json + tags: + - Companies + summary: Update a Company + parameters: + - type: integer + description: Id + name: id + in: path + required: true + - description: Update a Company + name: Request + in: body + required: true + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.UpdateCompanyRequest + responses: + '200': + description: Company response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '404': + description: Not found + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + delete: + security: + - AuthBearer: [] + description: Delete a Company + consumes: + - application/json + tags: + - Companies + summary: Delete a Company + parameters: + - type: integer + description: Id + name: id + in: path + required: true + responses: + '200': + description: response + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '404': + description: Not found + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/files/: + post: + security: + - AuthBearer: [] + description: Create a file + consumes: + - application/x-www-form-urlencoded + tags: + - Files + summary: Create a file + parameters: + - type: string + name: description + in: formData + required: true + - type: file + description: Create a file + name: file + in: formData + required: true + responses: + '201': + description: File response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.FileResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/files/get-by-filter: + post: + security: + - AuthBearer: [] + description: Get Files + consumes: + - application/json + tags: + - Files + summary: Get Files + parameters: + - description: Request + name: Request + in: body + required: true + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PaginationInputWithFilter + responses: + '200': + description: File response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_FileResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/files/{id}: + get: + security: + - AuthBearer: [] + description: Get a file + consumes: + - application/json + tags: + - Files + summary: Get a file + parameters: + - type: integer + description: Id + name: id + in: path + required: true + responses: + '200': + description: File response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.FileResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + put: + security: + - AuthBearer: [] + description: Update a file + consumes: + - application/json + tags: + - Files + summary: Update a file + parameters: + - type: integer + description: Id + name: id + in: path + required: true + - description: Update a file + name: Request + in: body + required: true + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.UpdateFileRequest + responses: + '200': + description: File response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.FileResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + delete: + security: + - AuthBearer: [] + description: Delete a file + consumes: + - application/json + tags: + - Files + summary: Delete a file + parameters: + - type: integer + description: Id + name: id + in: path + required: true + responses: + '200': + description: response + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/health/: + get: + description: Health Check + consumes: + - application/json + produces: + - application/json + tags: + - health + summary: Health Check + responses: + '200': + description: Success + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '400': + description: Failed + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/properties/: + post: + security: + - AuthBearer: [] + description: Create a Property + consumes: + - application/json + tags: + - Properties + summary: Create a Property + parameters: + - description: Create a Property + name: Request + in: body + required: true + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CreatePropertyRequest + responses: + '201': + description: Property response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/properties/get-by-filter: + post: + security: + - AuthBearer: [] + description: Get Properties + consumes: + - application/json + tags: + - Properties + summary: Get Properties + parameters: + - description: Request + name: Request + in: body + required: true + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PaginationInputWithFilter + responses: + '200': + description: Property response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_PropertyResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/properties/{id}: + get: + security: + - AuthBearer: [] + description: Get a Property + consumes: + - application/json + tags: + - Properties + summary: Get a Property + parameters: + - type: integer + description: Id + name: id + in: path + required: true + responses: + '200': + description: Property response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '404': + description: Not found + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + put: + security: + - AuthBearer: [] + description: Update a Property + consumes: + - application/json + tags: + - Properties + summary: Update a Property + parameters: + - type: integer + description: Id + name: id + in: path + required: true + - description: Update a Property + name: Request + in: body + required: true + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.UpdatePropertyRequest + responses: + '200': + description: Property response + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + result: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '404': + description: Not found + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + delete: + security: + - AuthBearer: [] + description: Delete a Property + consumes: + - application/json + tags: + - Properties + summary: Delete a Property + parameters: + - type: integer + description: Id + name: id + in: path + required: true + responses: + '200': + description: response + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '400': + description: Bad request + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '404': + description: Not found + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/test/binder/body: + post: + security: + - AuthBearer: [] + description: BodyBinder + consumes: + - application/json + produces: + - application/json + tags: + - Test + summary: BodyBinder + parameters: + - description: person data + name: person + in: body + required: true + schema: + $ref: '#/definitions/api_handler.personData' + responses: + '200': + description: Success + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + validationErrors: + type: object + '400': + description: Failed + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/test/binder/uri/{id}/{name}: + post: + security: + - AuthBearer: [] + description: BodyBinder + consumes: + - application/json + produces: + - application/json + tags: + - Test + summary: BodyBinder + parameters: + - type: integer + description: user id + name: id + in: path + required: true + - type: string + description: user name + name: name + in: path + required: true + responses: + '200': + description: Success + schema: + allOf: + - $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + - type: object + properties: + validationErrors: + type: object + '400': + description: Failed + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/test/user/{id}: + get: + description: UserById + consumes: + - application/json + produces: + - application/json + tags: + - Test + summary: UserById + parameters: + - type: integer + description: user id + name: id + in: path + required: true + responses: + '200': + description: Success + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '400': + description: Failed + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/users/login-by-mobile: + post: + description: RegisterLoginByMobileNumber + consumes: + - application/json + produces: + - application/json + tags: + - Users + summary: RegisterLoginByMobileNumber + parameters: + - description: RegisterLoginByMobileRequest + name: Request + in: body + required: true + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.RegisterLoginByMobileRequest + responses: + '201': + description: Success + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '400': + description: Failed + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '409': + description: Failed + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/users/login-by-username: + post: + description: LoginByUsername + consumes: + - application/json + produces: + - application/json + tags: + - Users + summary: LoginByUsername + parameters: + - description: LoginByUsernameRequest + name: Request + in: body + required: true + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.LoginByUsernameRequest + responses: + '201': + description: Success + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '400': + description: Failed + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '409': + description: Failed + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/users/register-by-username: + post: + description: RegisterByUsername + consumes: + - application/json + produces: + - application/json + tags: + - Users + summary: RegisterByUsername + parameters: + - description: RegisterUserByUsernameRequest + name: Request + in: body + required: true + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.RegisterUserByUsernameRequest + responses: + '201': + description: Success + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '400': + description: Failed + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '409': + description: Failed + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + /v1/users/send-otp: + post: + description: Send otp to user + consumes: + - application/json + produces: + - application/json + tags: + - Users + summary: Send otp to user + parameters: + - description: GetOtpRequest + name: Request + in: body + required: true + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.GetOtpRequest + responses: + '201': + description: Success + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '400': + description: Failed + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse + '409': + description: Failed + schema: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse definitions: api_handler.personData: + type: object + required: + - first_name + - last_name + - mobile_number properties: first_name: + type: string maxLength: 10 minLength: 4 - type: string last_name: + type: string maxLength: 20 minLength: 6 - type: string mobile_number: + type: string maxLength: 11 minLength: 11 - type: string - required: - - first_name - - last_name - - mobile_number + github_com_Noorwahid717_restful-api-go_api_dto.CarModelColorResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse: properties: color: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.ColorResponse id: type: integer + github_com_Noorwahid717_restful-api-go_api_dto.CarModelCommentResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse: properties: carModelId: type: integer @@ -34,20 +1017,22 @@ definitions: message: type: string user: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UserResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.UserResponse + github_com_Noorwahid717_restful-api-go_api_dto.CarModelImageResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse: properties: carModelId: type: integer id: type: integer image: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.FileResponse isMainImage: type: boolean + github_com_Noorwahid717_restful-api-go_api_dto.CarModelPriceHistoryResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse: properties: carModelYearId: type: integer @@ -57,81 +1042,93 @@ definitions: type: number priceAt: type: string + github_com_Noorwahid717_restful-api-go_api_dto.CarModelPropertyResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse: properties: carModelId: type: integer id: type: integer property: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse value: type: string + github_com_Noorwahid717_restful-api-go_api_dto.CarModelResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse: properties: carModelColors: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse' type: array - carModelComments: items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelColorResponse + carModelComments: type: array - carModelImages: items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelCommentResponse + carModelImages: type: array - carModelProperties: items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelImageResponse + carModelProperties: type: array - carModelYears: items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelPropertyResponse + carModelYears: type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelYearResponse carType: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarTypeResponse company: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse gearbox: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.GearboxResponse id: type: integer name: type: string + github_com_Noorwahid717_restful-api-go_api_dto.CarModelYearResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse: properties: carModelId: type: integer carModelPriceHistories: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse' type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelPriceHistoryResponse id: type: integer persianYear: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearWithoutDateResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PersianYearWithoutDateResponse + github_com_Noorwahid717_restful-api-go_api_dto.CarTypeResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse: properties: id: type: integer name: type: string + github_com_Noorwahid717_restful-api-go_api_dto.CityResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse: properties: country: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CountryResponse id: type: integer name: type: string + github_com_Noorwahid717_restful-api-go_api_dto.ColorResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse: properties: hexCode: type: string @@ -139,55 +1136,61 @@ definitions: type: integer name: type: string + github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse: properties: country: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CountryResponse id: type: integer name: type: string + github_com_Noorwahid717_restful-api-go_api_dto.CountryResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse: properties: cities: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse' type: array - companies: items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CityResponse + companies: type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse id: type: integer name: type: string + github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelColorRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelColorRequest: + required: + - carModelId + - colorId properties: carModelId: type: integer colorId: type: integer - required: - - carModelId - - colorId + github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelCommentRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelCommentRequest: + required: + - carModelId + - message properties: carModelId: type: integer message: - maxLength: 100 type: string + maxLength: 100 userId: type: integer - required: - - carModelId - - message + github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelImageRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelImageRequest: + required: + - carModelId + - imageId properties: carModelId: type: integer @@ -195,11 +1198,12 @@ definitions: type: integer isMainImage: type: boolean - required: - - carModelId - - imageId + github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelPriceHistoryRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPriceHistoryRequest: + required: + - carModelYearId + - price + - priceAt properties: carModelYearId: type: integer @@ -207,26 +1211,27 @@ definitions: type: number priceAt: type: string - required: - - carModelYearId - - price - - priceAt + github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelPropertyRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPropertyRequest: + required: + - carModelId + - propertyId + - value properties: carModelId: type: integer propertyId: type: integer value: - maxLength: 100 type: string - required: - - carModelId - - propertyId - - value + maxLength: 100 + github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelRequest: + required: + - carTypeId + - companyId + - gearboxId + - name properties: carTypeId: type: integer @@ -235,137 +1240,132 @@ definitions: gearboxId: type: integer name: + type: string maxLength: 15 minLength: 3 - type: string - required: - - carTypeId - - companyId - - gearboxId - - name + github_com_Noorwahid717_restful-api-go_api_dto.CreateCarModelYearRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelYearRequest: + required: + - carModelId + - persianYearId properties: carModelId: type: integer persianYearId: type: integer - required: - - carModelId - - persianYearId + github_com_Noorwahid717_restful-api-go_api_dto.CreateCarTypeRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarTypeRequest: + required: + - name properties: name: + type: string maxLength: 15 minLength: 3 - type: string - required: - - name + github_com_Noorwahid717_restful-api-go_api_dto.CreateCityRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreateCityRequest: + required: + - countryId + - name properties: countryId: type: integer name: + type: string maxLength: 20 minLength: 3 - type: string - required: - - countryId - - name + github_com_Noorwahid717_restful-api-go_api_dto.CreateColorRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreateColorRequest: properties: hexCode: + type: string maxLength: 7 minLength: 7 - type: string name: + type: string maxLength: 15 minLength: 3 - type: string + github_com_Noorwahid717_restful-api-go_api_dto.CreateCompanyRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreateCompanyRequest: + required: + - countryId + - name properties: countryId: type: integer name: + type: string maxLength: 20 minLength: 3 - type: string - required: - - countryId - - name + github_com_Noorwahid717_restful-api-go_api_dto.CreateGearboxRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreateGearboxRequest: + required: + - name properties: name: + type: string maxLength: 15 minLength: 3 - type: string - required: - - name + github_com_Noorwahid717_restful-api-go_api_dto.CreatePersianYearRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreatePersianYearRequest: properties: endAt: type: string persianTitle: + type: string maxLength: 4 minLength: 4 - type: string startAt: type: string year: type: integer + github_com_Noorwahid717_restful-api-go_api_dto.CreatePropertyCategoryRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyCategoryRequest: + required: + - name properties: icon: - maxLength: 1000 type: string + maxLength: 1000 name: + type: string maxLength: 50 minLength: 3 - type: string - required: - - name + github_com_Noorwahid717_restful-api-go_api_dto.CreatePropertyRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyRequest: + required: + - categoryId + - name properties: categoryId: type: integer dataType: - maxLength: 15 type: string + maxLength: 15 description: - maxLength: 1000 type: string - icon: maxLength: 1000 + icon: type: string + maxLength: 1000 name: + type: string maxLength: 50 minLength: 3 - type: string unit: - maxLength: 15 type: string - required: - - categoryId - - name + maxLength: 15 + github_com_Noorwahid717_restful-api-go_api_dto.CreateUpdateCountryRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.CreateUpdateCountryRequest: + required: + - name properties: name: + type: string maxLength: 20 minLength: 3 - type: string - required: - - name + github_com_Noorwahid717_restful-api-go_api_dto.FileResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse: properties: description: type: string @@ -377,36 +1377,36 @@ definitions: type: string name: type: string + github_com_Noorwahid717_restful-api-go_api_dto.GearboxResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse: properties: id: type: integer name: type: string + github_com_Noorwahid717_restful-api-go_api_dto.GetOtpRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.GetOtpRequest: + required: + - mobileNumber properties: mobileNumber: + type: string maxLength: 11 minLength: 11 - type: string - required: - - mobileNumber + github_com_Noorwahid717_restful-api-go_api_dto.LoginByUsernameRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.LoginByUsernameRequest: + required: + - password + - username properties: password: - minLength: 6 type: string + minLength: 6 username: - minLength: 5 type: string - required: - - password - - username + minLength: 5 + github_com_Noorwahid717_restful-api-go_api_dto.PersianYearResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse: properties: endAt: type: string @@ -418,8 +1418,8 @@ definitions: type: string year: type: integer + github_com_Noorwahid717_restful-api-go_api_dto.PersianYearWithoutDateResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearWithoutDateResponse: properties: id: type: integer @@ -427,8 +1427,8 @@ definitions: type: string year: type: integer + github_com_Noorwahid717_restful-api-go_api_dto.PropertyCategoryResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse: properties: icon: type: string @@ -437,14 +1437,16 @@ definitions: name: type: string properties: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse' type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse + github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse: properties: category: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse' + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyCategoryResponse dataType: type: string description: @@ -457,80 +1459,80 @@ definitions: type: string unit: type: string + github_com_Noorwahid717_restful-api-go_api_dto.RegisterLoginByMobileRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.RegisterLoginByMobileRequest: + required: + - mobileNumber + - otp properties: mobileNumber: + type: string maxLength: 11 minLength: 11 - type: string otp: + type: string maxLength: 6 minLength: 6 - type: string - required: - - mobileNumber - - otp + github_com_Noorwahid717_restful-api-go_api_dto.RegisterUserByUsernameRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.RegisterUserByUsernameRequest: + required: + - firstName + - lastName + - password + - username properties: email: - minLength: 6 type: string + minLength: 6 firstName: - minLength: 3 type: string + minLength: 3 lastName: - minLength: 6 type: string - password: minLength: 6 + password: type: string + minLength: 6 username: - minLength: 5 type: string - required: - - firstName - - lastName - - password - - username + minLength: 5 + github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelColorRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelColorRequest: properties: carModelId: type: integer colorId: type: integer + github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelCommentRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelCommentRequest: + required: + - message properties: message: - maxLength: 100 type: string - required: - - message + maxLength: 100 + github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelImageRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelImageRequest: properties: isMainImage: type: boolean + github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelPriceHistoryRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPriceHistoryRequest: properties: price: type: number priceAt: type: string + github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelPropertyRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPropertyRequest: + required: + - value properties: value: - maxLength: 100 type: string - required: - - value + maxLength: 100 + github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelRequest: properties: carTypeId: type: integer @@ -540,454 +1542,192 @@ definitions: type: integer name: type: string + github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarModelYearRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelYearRequest: properties: carModelId: type: integer persianYearId: type: integer + github_com_Noorwahid717_restful-api-go_api_dto.UpdateCarTypeRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarTypeRequest: + required: + - name properties: name: + type: string maxLength: 15 minLength: 3 - type: string - required: - - name + github_com_Noorwahid717_restful-api-go_api_dto.UpdateCityRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCityRequest: properties: countryId: type: integer name: + type: string maxLength: 20 minLength: 3 - type: string + github_com_Noorwahid717_restful-api-go_api_dto.UpdateColorRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdateColorRequest: properties: hexCode: + type: string maxLength: 7 minLength: 7 - type: string name: + type: string maxLength: 15 minLength: 3 - type: string + github_com_Noorwahid717_restful-api-go_api_dto.UpdateCompanyRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCompanyRequest: properties: countryId: type: integer name: + type: string maxLength: 20 minLength: 3 - type: string + github_com_Noorwahid717_restful-api-go_api_dto.UpdateFileRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdateFileRequest: properties: description: type: string + github_com_Noorwahid717_restful-api-go_api_dto.UpdateGearboxRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdateGearboxRequest: + required: + - name properties: name: + type: string maxLength: 15 minLength: 3 - type: string - required: - - name + github_com_Noorwahid717_restful-api-go_api_dto.UpdatePersianYearRequest: type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePersianYearRequest: properties: endAt: type: string persianTitle: + type: string maxLength: 4 minLength: 4 - type: string - startAt: - type: string - year: - type: integer - type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyCategoryRequest: - properties: - icon: - type: string - name: - type: string - type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyRequest: - properties: - categoryId: - type: integer - dataType: - maxLength: 15 - type: string - description: - maxLength: 1000 - type: string - icon: - maxLength: 1000 - type: string - name: - type: string - unit: - maxLength: 15 - type: string - type: object - github_com_naeemaei_golang-clean-web-api_api_dto.UserResponse: - properties: - email: - type: string - firstName: - type: string - id: - type: integer - lastName: - type: string - username: - type: string - type: object - github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse: - properties: - error: {} - result: {} - resultCode: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.ResultCode' - success: - type: boolean - validationErrors: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_validation.ValidationError' - type: array - type: object - github_com_naeemaei_golang-clean-web-api_api_helper.ResultCode: - enum: - - 0 - - 40001 - - 40101 - - 40301 - - 40401 - - 42901 - - 42902 - - 50001 - - 50002 - type: integer - x-enum-varnames: - - Success - - ValidationError - - AuthError - - ForbiddenError - - NotFoundError - - LimiterError - - OtpLimiterError - - CustomRecovery - - InternalError - github_com_naeemaei_golang-clean-web-api_api_validation.ValidationError: - properties: - message: - type: string - property: - type: string - tag: - type: string - value: - type: string - type: object - github_com_naeemaei_golang-clean-web-api_domain_filter.Filter: - properties: - filterType: - description: text number - type: string - from: - type: string - to: - type: string - type: - description: contains notContains equals notEqual startsWith lessThan lessThanOrEqual - greaterThan greaterThanOrEqual inRange endsWith - type: string - type: object - ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelColorResponse - : properties: - hasNextPage: - type: boolean - hasPreviousPage: - type: boolean - items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse' - type: array - pageNumber: - type: integer - pageSize: - type: integer - totalPages: - type: integer - totalRows: - type: integer - type: object - ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelCommentResponse - : properties: - hasNextPage: - type: boolean - hasPreviousPage: - type: boolean - items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse' - type: array - pageNumber: - type: integer - pageSize: - type: integer - totalPages: - type: integer - totalRows: - type: integer - type: object - ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelImageResponse - : properties: - hasNextPage: - type: boolean - hasPreviousPage: - type: boolean - items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse' - type: array - pageNumber: - type: integer - pageSize: - type: integer - totalPages: - type: integer - totalRows: - type: integer - type: object - ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPriceHistoryResponse - : properties: - hasNextPage: - type: boolean - hasPreviousPage: - type: boolean - items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse' - type: array - pageNumber: - type: integer - pageSize: - type: integer - totalPages: - type: integer - totalRows: - type: integer - type: object - ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPropertyResponse - : properties: - hasNextPage: - type: boolean - hasPreviousPage: - type: boolean - items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse' - type: array - pageNumber: - type: integer - pageSize: - type: integer - totalPages: - type: integer - totalRows: - type: integer - type: object - ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelResponse - : properties: - hasNextPage: - type: boolean - hasPreviousPage: - type: boolean - items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse' - type: array - pageNumber: - type: integer - pageSize: - type: integer - totalPages: - type: integer - totalRows: - type: integer - type: object - ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelYearResponse - : properties: - hasNextPage: - type: boolean - hasPreviousPage: - type: boolean - items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse' - type: array - pageNumber: - type: integer - pageSize: - type: integer - totalPages: - type: integer - totalRows: - type: integer - type: object - ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarTypeResponse - : properties: - hasNextPage: - type: boolean - hasPreviousPage: - type: boolean - items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse' - type: array - pageNumber: - type: integer - pageSize: - type: integer - totalPages: - type: integer - totalRows: - type: integer - type: object - github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CityResponse: - properties: - hasNextPage: - type: boolean - hasPreviousPage: - type: boolean - items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse' - type: array - pageNumber: - type: integer - pageSize: - type: integer - totalPages: - type: integer - totalRows: + startAt: + type: string + year: type: integer + github_com_Noorwahid717_restful-api-go_api_dto.UpdatePropertyCategoryRequest: type: object - github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_ColorResponse: properties: - hasNextPage: - type: boolean - hasPreviousPage: - type: boolean - items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse' - type: array - pageNumber: - type: integer - pageSize: - type: integer - totalPages: - type: integer - totalRows: - type: integer + icon: + type: string + name: + type: string + github_com_Noorwahid717_restful-api-go_api_dto.UpdatePropertyRequest: type: object - ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CompanyResponse - : properties: - hasNextPage: - type: boolean - hasPreviousPage: - type: boolean - items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse' - type: array - pageNumber: - type: integer - pageSize: - type: integer - totalPages: - type: integer - totalRows: + properties: + categoryId: type: integer + dataType: + type: string + maxLength: 15 + description: + type: string + maxLength: 1000 + icon: + type: string + maxLength: 1000 + name: + type: string + unit: + type: string + maxLength: 15 + github_com_Noorwahid717_restful-api-go_api_dto.UserResponse: type: object - ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CountryResponse - : properties: - hasNextPage: - type: boolean - hasPreviousPage: - type: boolean - items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse' - type: array - pageNumber: - type: integer - pageSize: - type: integer - totalPages: - type: integer - totalRows: + properties: + email: + type: string + firstName: + type: string + id: type: integer + lastName: + type: string + username: + type: string + github_com_Noorwahid717_restful-api-go_api_helper.BaseHttpResponse: type: object - github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_FileResponse: properties: - hasNextPage: - type: boolean - hasPreviousPage: + error: {} + result: {} + resultCode: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_helper.ResultCode + success: type: boolean - items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse' + validationErrors: type: array - pageNumber: - type: integer - pageSize: - type: integer - totalPages: - type: integer - totalRows: - type: integer - type: object - ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_GearboxResponse - : properties: - hasNextPage: - type: boolean - hasPreviousPage: - type: boolean - items: items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse' - type: array - pageNumber: - type: integer - pageSize: - type: integer - totalPages: - type: integer - totalRows: - type: integer + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_validation.ValidationError + github_com_Noorwahid717_restful-api-go_api_helper.ResultCode: + type: integer + enum: + - 0 + - 40001 + - 40101 + - 40301 + - 40401 + - 42901 + - 42902 + - 50001 + - 50002 + x-enum-varnames: + - Success + - ValidationError + - AuthError + - ForbiddenError + - NotFoundError + - LimiterError + - OtpLimiterError + - CustomRecovery + - InternalError + github_com_Noorwahid717_restful-api-go_api_validation.ValidationError: + type: object + properties: + message: + type: string + property: + type: string + tag: + type: string + value: + type: string + github_com_Noorwahid717_restful-api-go_domain_filter.Filter: + type: object + properties: + filterType: + description: text number + type: string + from: + type: string + to: + type: string + type: + description: >- + contains notContains equals notEqual startsWith lessThan + lessThanOrEqual greaterThan greaterThanOrEqual inRange endsWith + type: string + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelColorResponse: type: object - ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PersianYearResponse - : properties: + properties: hasNextPage: type: boolean hasPreviousPage: type: boolean items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse' type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelColorResponse pageNumber: type: integer pageSize: @@ -996,17 +1736,18 @@ definitions: type: integer totalRows: type: integer + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelCommentResponse: type: object - ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyCategoryResponse - : properties: + properties: hasNextPage: type: boolean hasPreviousPage: type: boolean items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse' type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelCommentResponse pageNumber: type: integer pageSize: @@ -1015,3038 +1756,332 @@ definitions: type: integer totalRows: type: integer + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelImageResponse: type: object - ? github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyResponse - : properties: + properties: hasNextPage: type: boolean hasPreviousPage: type: boolean items: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse' - type: array - pageNumber: - type: integer - pageSize: - type: integer - totalPages: - type: integer - totalRows: - type: integer - type: object - github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter: - properties: - filter: - additionalProperties: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.Filter' - type: object - pageNumber: - type: integer - pageSize: - type: integer - sort: - items: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.Sort' - type: array - type: object - github_com_naeemaei_golang-clean-web-api_domain_filter.Sort: - properties: - colId: - type: string - sort: - type: string - type: object -info: - contact: {} -paths: - /v1/car-model-colors/: - post: - consumes: - - application/json - description: Create a CarModelColor - parameters: - - description: Create a CarModelColor - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelColorRequest' - responses: - "201": - description: CarModelColor response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a CarModelColor - tags: - - CarModelColors - /v1/car-model-colors/{id}: - delete: - consumes: - - application/json - description: Delete a CarModelColor - parameters: - - description: Id - in: path - name: id - required: true - type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a CarModelColor - tags: - - CarModelColors - get: - consumes: - - application/json - description: Get a CarModelColor - parameters: - - description: Id - in: path - name: id - required: true - type: integer - responses: - "200": - description: CarModelColor response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a CarModelColor - tags: - - CarModelColors - put: - consumes: - - application/json - description: Update a CarModelColor - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a CarModelColor - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelColorRequest' - responses: - "200": - description: CarModelColor response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelColorResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a CarModelColor - tags: - - CarModelColors - /v1/car-model-colors/get-by-filter: - post: - consumes: - - application/json - description: Get CarModelColors - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: CarModelColor response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelColorResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get CarModelColors - tags: - - CarModelColors - /v1/car-model-comments/: - post: - consumes: - - application/json - description: Create a CarModelComment - parameters: - - description: Create a CarModelComment - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelCommentRequest' - responses: - "201": - description: CarModelComment response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a CarModelComment - tags: - - CarModelComments - /v1/car-model-comments/{id}: - delete: - consumes: - - application/json - description: Delete a CarModelComment - parameters: - - description: Id - in: path - name: id - required: true - type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a CarModelComment - tags: - - CarModelComments - get: - consumes: - - application/json - description: Get a CarModelComment - parameters: - - description: Id - in: path - name: id - required: true + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelImageResponse + pageNumber: type: integer - responses: - "200": - description: CarModelComment response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a CarModelComment - tags: - - CarModelComments - put: - consumes: - - application/json - description: Update a CarModelComment - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a CarModelComment - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelCommentRequest' - responses: - "200": - description: CarModelComment response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelCommentResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a CarModelComment - tags: - - CarModelComments - /v1/car-model-comments/get-by-filter: - post: - consumes: - - application/json - description: Get CarModelComments - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: CarModelComment response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelCommentResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get CarModelComments - tags: - - CarModelComments - /v1/car-model-images/: - post: - consumes: - - application/json - description: Create a CarModelImage - parameters: - - description: Create a CarModelImage - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelImageRequest' - responses: - "201": - description: CarModelImage response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a CarModelImage - tags: - - CarModelImages - /v1/car-model-images/{id}: - delete: - consumes: - - application/json - description: Delete a CarModelImage - parameters: - - description: Id - in: path - name: id - required: true + pageSize: type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a CarModelImage - tags: - - CarModelImages - get: - consumes: - - application/json - description: Get a CarModelImage - parameters: - - description: Id - in: path - name: id - required: true + totalPages: type: integer - responses: - "200": - description: CarModelImage response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a CarModelImage - tags: - - CarModelImages - put: - consumes: - - application/json - description: Update a CarModelImage - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a CarModelImage - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelImageRequest' - responses: - "200": - description: CarModelImage response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelImageResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a CarModelImage - tags: - - CarModelImages - /v1/car-model-images/get-by-filter: - post: - consumes: - - application/json - description: Get CarModelImages - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: CarModelImage response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelImageResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get CarModelImages - tags: - - CarModelImages - /v1/car-model-price-histories/: - post: - consumes: - - application/json - description: Create a CarModelPriceHistory - parameters: - - description: Create a CarModelPriceHistory - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPriceHistoryRequest' - responses: - "201": - description: CarModelPriceHistory response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a CarModelPriceHistory - tags: - - CarModelPriceHistories - /v1/car-model-price-histories/{id}: - delete: - consumes: - - application/json - description: Delete a CarModelPriceHistory - parameters: - - description: Id - in: path - name: id - required: true + totalRows: type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a CarModelPriceHistory - tags: - - CarModelPriceHistories - get: - consumes: - - application/json - description: Get a CarModelPriceHistory - parameters: - - description: Id - in: path - name: id - required: true + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelPriceHistoryResponse: + type: object + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelPriceHistoryResponse + pageNumber: type: integer - responses: - "200": - description: CarModelPriceHistory response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a CarModelPriceHistory - tags: - - CarModelPriceHistories - put: - consumes: - - application/json - description: Update a CarModelPriceHistory - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a CarModelPriceHistory - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPriceHistoryRequest' - responses: - "200": - description: CarModelPriceHistory response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPriceHistoryResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a CarModelPriceHistory - tags: - - CarModelPriceHistories - /v1/car-model-price-histories/get-by-filter: - post: - consumes: - - application/json - description: Get CarModelPriceHistories - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: CarModelPriceHistory response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPriceHistoryResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get CarModelPriceHistories - tags: - - CarModelPriceHistories - /v1/car-model-properties/: - post: - consumes: - - application/json - description: Create a CarModelProperty - parameters: - - description: Create a CarModelProperty - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelPropertyRequest' - responses: - "201": - description: CarModelProperty response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a CarModelProperty - tags: - - CarModelProperties - /v1/car-model-properties/{id}: - delete: - consumes: - - application/json - description: Delete a CarModelProperty - parameters: - - description: Id - in: path - name: id - required: true + pageSize: type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a CarModelProperty - tags: - - CarModelProperties - get: - consumes: - - application/json - description: Get a CarModelProperty - parameters: - - description: Id - in: path - name: id - required: true + totalPages: type: integer - responses: - "200": - description: CarModelProperty response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a CarModelProperty - tags: - - CarModelProperties - put: - consumes: - - application/json - description: Update a CarModelProperty - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a CarModelProperty - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelPropertyRequest' - responses: - "200": - description: CarModelProperty response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelPropertyResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a CarModelProperty - tags: - - CarModelProperties - /v1/car-model-properties/get-by-filter: - post: - consumes: - - application/json - description: Get CarModelProperties - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: CarModelProperty response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelPropertyResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get CarModelProperties - tags: - - CarModelProperties - /v1/car-model-years/: - post: - consumes: - - application/json - description: Create a CarModelYear - parameters: - - description: Create a CarModelYear - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelYearRequest' - responses: - "201": - description: CarModelYear response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a CarModelYear - tags: - - CarModelYears - /v1/car-model-years/{id}: - delete: - consumes: - - application/json - description: Delete a CarModelYear - parameters: - - description: Id - in: path - name: id - required: true + totalRows: type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a CarModelYear - tags: - - CarModelYears - get: - consumes: - - application/json - description: Get a CarModelYear - parameters: - - description: Id - in: path - name: id - required: true + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelPropertyResponse: + type: object + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelPropertyResponse + pageNumber: + type: integer + pageSize: + type: integer + totalPages: type: integer - responses: - "200": - description: CarModelYear response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a CarModelYear - tags: - - CarModelYears - put: - consumes: - - application/json - description: Update a CarModelYear - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a CarModelYear - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelYearRequest' - responses: - "200": - description: CarModelYear response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelYearResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a CarModelYear - tags: - - CarModelYears - /v1/car-model-years/get-by-filter: - post: - consumes: - - application/json - description: Get CarModelYears - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: CarModelYear response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelYearResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get CarModelYears - tags: - - CarModelYears - /v1/car-models/: - post: - consumes: - - application/json - description: Create a CarModel - parameters: - - description: Create a CarModel - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarModelRequest' - responses: - "201": - description: CarModel response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a CarModel - tags: - - CarModels - /v1/car-models/{id}: - delete: - consumes: - - application/json - description: Delete a CarModel - parameters: - - description: Id - in: path - name: id - required: true + totalRows: type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a CarModel - tags: - - CarModels - get: - consumes: - - application/json - description: Get a CarModel - parameters: - - description: Id - in: path - name: id - required: true + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelResponse: + type: object + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelResponse + pageNumber: type: integer - responses: - "200": - description: CarModel response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a CarModel - tags: - - CarModels - put: - consumes: - - application/json - description: Update a CarModel - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a CarModel - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarModelRequest' - responses: - "200": - description: CarModel response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarModelResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a CarModel - tags: - - CarModels - /v1/car-models/get-by-filter: - post: - consumes: - - application/json - description: Get CarModels - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: CarModel response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarModelResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get CarModels - tags: - - CarModels - /v1/car-types/: - post: - consumes: - - application/json - description: Create a CarType - parameters: - - description: Create a CarType - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCarTypeRequest' - responses: - "201": - description: CarType response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a CarType - tags: - - CarTypes - /v1/car-types/{id}: - delete: - consumes: - - application/json - description: Delete a CarType - parameters: - - description: Id - in: path - name: id - required: true + pageSize: type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a CarType - tags: - - CarTypes - get: - consumes: - - application/json - description: Get a CarType - parameters: - - description: Id - in: path - name: id - required: true + totalPages: type: integer - responses: - "200": - description: CarType response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a CarType - tags: - - CarTypes - put: - consumes: - - application/json - description: Update a CarType - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a CarType - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCarTypeRequest' - responses: - "200": - description: CarType response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CarTypeResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a CarType - tags: - - CarTypes - /v1/car-types/get-by-filter: - post: - consumes: - - application/json - description: Get CarTypes - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: CarType response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CarTypeResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get CarTypes - tags: - - CarTypes - /v1/cities/: - post: - consumes: - - application/json - description: Create a City - parameters: - - description: Create a City - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCityRequest' - responses: - "201": - description: City response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a City - tags: - - Cities - /v1/cities/{id}: - delete: - consumes: - - application/json - description: Delete a City - parameters: - - description: Id - in: path - name: id - required: true + totalRows: type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a City - tags: - - Cities - get: - consumes: - - application/json - description: Get a City - parameters: - - description: Id - in: path - name: id - required: true + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarModelYearResponse: + type: object + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarModelYearResponse + pageNumber: type: integer - responses: - "200": - description: City response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a City - tags: - - Cities - put: - consumes: - - application/json - description: Update a City - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a City - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCityRequest' - responses: - "200": - description: City response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CityResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a City - tags: - - Cities - /v1/cities/get-by-filter: - post: - consumes: - - application/json - description: Get Cities - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: City response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CityResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get Cities - tags: - - Cities - /v1/colors/: - post: - consumes: - - application/json - description: Create a Color - parameters: - - description: Create a Color - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateColorRequest' - responses: - "201": - description: Color response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a Color - tags: - - Colors - /v1/colors/{id}: - delete: - consumes: - - application/json - description: Delete a Color - parameters: - - description: Id - in: path - name: id - required: true + pageSize: + type: integer + totalPages: type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a Color - tags: - - Colors - get: - consumes: - - application/json - description: Get a Color - parameters: - - description: Id - in: path - name: id - required: true + totalRows: type: integer - responses: - "200": - description: Color response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a Color - tags: - - Colors - put: - consumes: - - application/json - description: Update a Color - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a Color - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateColorRequest' - responses: - "200": - description: Color response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.ColorResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a Color - tags: - - Colors - /v1/colors/get-by-filter: - post: - consumes: - - application/json - description: Get Colors - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: Color response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_ColorResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get Colors - tags: - - Colors - /v1/companies/: - post: - consumes: - - application/json - description: Create a Company - parameters: - - description: Create a Company - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateCompanyRequest' - responses: - "201": - description: Company response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a Company - tags: - - Companies - /v1/companies/{id}: - delete: - consumes: - - application/json - description: Delete a Company - parameters: - - description: Id - in: path - name: id - required: true + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CarTypeResponse: + type: object + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CarTypeResponse + pageNumber: type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a Company - tags: - - Companies - get: - consumes: - - application/json - description: Get a Company - parameters: - - description: Id - in: path - name: id - required: true + pageSize: type: integer - responses: - "200": - description: Company response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a Company - tags: - - Companies - put: - consumes: - - application/json - description: Update a Company - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a Company - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateCompanyRequest' - responses: - "200": - description: Company response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CompanyResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a Company - tags: - - Companies - /v1/companies/get-by-filter: - post: - consumes: - - application/json - description: Get Companies - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: Company response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CompanyResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get Companies - tags: - - Companies - /v1/countries/: - post: - consumes: - - application/json - description: Create a country - parameters: - - description: Create a country - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateUpdateCountryRequest' - responses: - "201": - description: Country response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a country - tags: - - Countries - /v1/countries/{id}: - delete: - consumes: - - application/json - description: Delete a country - parameters: - - description: Id - in: path - name: id - required: true + totalPages: type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a country - tags: - - Countries - get: - consumes: - - application/json - description: Get a country - parameters: - - description: Id - in: path - name: id - required: true + totalRows: type: integer - responses: - "200": - description: Country response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a country - tags: - - Countries - put: - consumes: - - application/json - description: Update a country - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a country - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateUpdateCountryRequest' - responses: - "200": - description: Country response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CountryResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a country - tags: - - Countries - /v1/countries/get-by-filter: - post: - consumes: - - application/json - description: Get Countries - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: Country response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_CountryResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get Countries - tags: - - Countries - /v1/files/: - post: - consumes: - - application/x-www-form-urlencoded - description: Create a file - parameters: - - in: formData - name: description - required: true - type: string - - description: Create a file - in: formData - name: file - required: true - type: file - responses: - "201": - description: File response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a file - tags: - - Files - /v1/files/{id}: - delete: - consumes: - - application/json - description: Delete a file - parameters: - - description: Id - in: path - name: id - required: true + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CityResponse: + type: object + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CityResponse + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_ColorResponse: + type: object + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.ColorResponse + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CompanyResponse: + type: object + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CompanyResponse + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_CountryResponse: + type: object + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.CountryResponse + pageNumber: type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a file - tags: - - Files - get: - consumes: - - application/json - description: Get a file - parameters: - - description: Id - in: path - name: id - required: true + pageSize: type: integer - responses: - "200": - description: File response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a file - tags: - - Files - put: - consumes: - - application/json - description: Update a file - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a file - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateFileRequest' - responses: - "200": - description: File response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.FileResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a file - tags: - - Files - /v1/files/get-by-filter: - post: - consumes: - - application/json - description: Get Files - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: File response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_FileResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get Files - tags: - - Files - /v1/gearboxes/: - post: - consumes: - - application/json - description: Create a Gearbox - parameters: - - description: Create a Gearbox - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreateGearboxRequest' - responses: - "201": - description: Gearbox response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a Gearbox - tags: - - Gearboxes - /v1/gearboxes/{id}: - delete: - consumes: - - application/json - description: Delete a Gearbox - parameters: - - description: Id - in: path - name: id - required: true + totalPages: type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a Gearbox - tags: - - Gearboxes - get: - consumes: - - application/json - description: Get a Gearbox - parameters: - - description: Id - in: path - name: id - required: true + totalRows: type: integer - responses: - "200": - description: Gearbox response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a Gearbox - tags: - - Gearboxes - put: - consumes: - - application/json - description: Update a Gearbox - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a Gearbox - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdateGearboxRequest' - responses: - "200": - description: Gearbox response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GearboxResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a Gearbox - tags: - - Gearboxes - /v1/gearboxes/get-by-filter: - post: - consumes: - - application/json - description: Get Gearboxes - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: Gearbox response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_GearboxResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get Gearboxes - tags: - - Gearboxes - /v1/health/: - get: - consumes: - - application/json - description: Health Check - produces: - - application/json - responses: - "200": - description: Success - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Failed - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - summary: Health Check - tags: - - health - /v1/properties/: - post: - consumes: - - application/json - description: Create a Property - parameters: - - description: Create a Property - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyRequest' - responses: - "201": - description: Property response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a Property - tags: - - Properties - /v1/properties/{id}: - delete: - consumes: - - application/json - description: Delete a Property - parameters: - - description: Id - in: path - name: id - required: true + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_FileResponse: + type: object + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.FileResponse + pageNumber: type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a Property - tags: - - Properties - get: - consumes: - - application/json - description: Get a Property - parameters: - - description: Id - in: path - name: id - required: true + pageSize: type: integer - responses: - "200": - description: Property response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a Property - tags: - - Properties - put: - consumes: - - application/json - description: Update a Property - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a Property - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyRequest' - responses: - "200": - description: Property response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a Property - tags: - - Properties - /v1/properties/get-by-filter: - post: - consumes: - - application/json - description: Get Properties - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: Property response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get Properties - tags: - - Properties - /v1/property-categories/: - post: - consumes: - - application/json - description: Create a PropertyCategory - parameters: - - description: Create a PropertyCategory - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreatePropertyCategoryRequest' - responses: - "201": - description: PropertyCategory response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a PropertyCategory - tags: - - PropertyCategories - /v1/property-categories/{id}: - delete: - consumes: - - application/json - description: Delete a PropertyCategory - parameters: - - description: Id - in: path - name: id - required: true + totalPages: + type: integer + totalRows: + type: integer + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_GearboxResponse: + type: object + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.GearboxResponse + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_PersianYearResponse: + type: object + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PersianYearResponse + pageNumber: + type: integer + pageSize: + type: integer + totalPages: type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a PropertyCategory - tags: - - PropertyCategories - get: - consumes: - - application/json - description: Get a PropertyCategory - parameters: - - description: Id - in: path - name: id - required: true + totalRows: type: integer - responses: - "200": - description: PropertyCategory response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a PropertyCategory - tags: - - PropertyCategories - put: - consumes: - - application/json - description: Update a PropertyCategory - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a PropertyCategory - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePropertyCategoryRequest' - responses: - "200": - description: PropertyCategory response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PropertyCategoryResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a PropertyCategory - tags: - - PropertyCategories - /v1/property-categories/get-by-filter: - post: - consumes: - - application/json - description: Get PropertyCategories - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: PropertyCategory response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PropertyCategoryResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get PropertyCategories - tags: - - PropertyCategories - /v1/test/binder/body: - post: - consumes: - - application/json - description: BodyBinder - parameters: - - description: person data - in: body - name: person - required: true - schema: - $ref: '#/definitions/api_handler.personData' - produces: - - application/json - responses: - "200": - description: Success - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - validationErrors: - type: object - type: object - "400": - description: Failed - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: BodyBinder - tags: - - Test - /v1/test/binder/uri/{id}/{name}: - post: - consumes: - - application/json - description: BodyBinder - parameters: - - description: user id - in: path - name: id - required: true + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_PropertyCategoryResponse: + type: object + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyCategoryResponse + pageNumber: type: integer - - description: user name - in: path - name: name - required: true - type: string - produces: - - application/json - responses: - "200": - description: Success - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - validationErrors: - type: object - type: object - "400": - description: Failed - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: BodyBinder - tags: - - Test - /v1/test/user/{id}: - get: - consumes: - - application/json - description: UserById - parameters: - - description: user id - in: path - name: id - required: true + pageSize: type: integer - produces: - - application/json - responses: - "200": - description: Success - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Failed - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - summary: UserById - tags: - - Test - /v1/users/login-by-mobile: - post: - consumes: - - application/json - description: RegisterLoginByMobileNumber - parameters: - - description: RegisterLoginByMobileRequest - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.RegisterLoginByMobileRequest' - produces: - - application/json - responses: - "201": - description: Success - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Failed - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "409": - description: Failed - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - summary: RegisterLoginByMobileNumber - tags: - - Users - /v1/users/login-by-username: - post: - consumes: - - application/json - description: LoginByUsername - parameters: - - description: LoginByUsernameRequest - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.LoginByUsernameRequest' - produces: - - application/json - responses: - "201": - description: Success - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Failed - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "409": - description: Failed - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - summary: LoginByUsername - tags: - - Users - /v1/users/register-by-username: - post: - consumes: - - application/json - description: RegisterByUsername - parameters: - - description: RegisterUserByUsernameRequest - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.RegisterUserByUsernameRequest' - produces: - - application/json - responses: - "201": - description: Success - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Failed - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "409": - description: Failed - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - summary: RegisterByUsername - tags: - - Users - /v1/users/send-otp: - post: - consumes: - - application/json - description: Send otp to user - parameters: - - description: GetOtpRequest - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.GetOtpRequest' - produces: - - application/json - responses: - "201": - description: Success - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Failed - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "409": - description: Failed - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - summary: Send otp to user - tags: - - Users - /v1/years/: - post: - consumes: - - application/json - description: Create a PersianYear - parameters: - - description: Create a PersianYear - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.CreatePersianYearRequest' - responses: - "201": - description: PersianYear response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Create a PersianYear - tags: - - PersianYears - /v1/years/{id}: - delete: - consumes: - - application/json - description: Delete a PersianYear - parameters: - - description: Id - in: path - name: id - required: true + totalPages: type: integer - responses: - "200": - description: response - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Delete a PersianYear - tags: - - PersianYears - get: - consumes: - - application/json - description: Get a PersianYear - parameters: - - description: Id - in: path - name: id - required: true + totalRows: type: integer - responses: - "200": - description: PersianYear response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get a PersianYear - tags: - - PersianYears - put: - consumes: - - application/json - description: Update a PersianYear - parameters: - - description: Id - in: path - name: id - required: true - type: integer - - description: Update a PersianYear - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.UpdatePersianYearRequest' - responses: - "200": - description: PersianYear response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_dto.PersianYearResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - "404": - description: Not found - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Update a PersianYear - tags: - - PersianYears - /v1/years/get-by-filter: - post: - consumes: - - application/json - description: Get PersianYears - parameters: - - description: Request - in: body - name: Request - required: true - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PaginationInputWithFilter' - responses: - "200": - description: PersianYear response - schema: - allOf: - - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - - properties: - result: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_domain_filter.PagedList-github_com_naeemaei_golang-clean-web-api_api_dto_PersianYearResponse' - type: object - "400": - description: Bad request - schema: - $ref: '#/definitions/github_com_naeemaei_golang-clean-web-api_api_helper.BaseHttpResponse' - security: - - AuthBearer: [] - summary: Get PersianYears - tags: - - PersianYears + github_com_Noorwahid717_restful-api-go_domain_filter.PagedList-github_com_Noorwahid717_restful-api-go_api_dto_PropertyResponse: + type: object + properties: + hasNextPage: + type: boolean + hasPreviousPage: + type: boolean + items: + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_api_dto.PropertyResponse + pageNumber: + type: integer + pageSize: + type: integer + totalPages: + type: integer + totalRows: + type: integer + github_com_Noorwahid717_restful-api-go_domain_filter.PaginationInputWithFilter: + type: object + properties: + filter: + type: object + additionalProperties: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.Filter + pageNumber: + type: integer + pageSize: + type: integer + sort: + type: array + items: + $ref: >- + #/definitions/github_com_Noorwahid717_restful-api-go_domain_filter.Sort + github_com_Noorwahid717_restful-api-go_domain_filter.Sort: + type: object + properties: + colId: + type: string + sort: + type: string securityDefinitions: AuthBearer: - in: header - name: Authorization type: apiKey -swagger: "2.0" + name: Authorization + in: header diff --git a/src/go.mod b/src/go.mod index 60b24fa..ba23011 100644 --- a/src/go.mod +++ b/src/go.mod @@ -11,12 +11,12 @@ require ( github.com/google/uuid v1.6.0 github.com/prometheus/client_golang v1.19.0 github.com/rs/zerolog v1.32.0 - github.com/spf13/viper v1.18.2 + github.com/spf13/viper v1.19.0 github.com/swaggo/files v1.0.1 github.com/swaggo/gin-swagger v1.6.0 github.com/swaggo/swag v1.16.3 go.uber.org/zap v1.27.0 - golang.org/x/crypto v0.22.0 + golang.org/x/crypto v0.25.0 golang.org/x/time v0.5.0 gopkg.in/natefinch/lumberjack.v2 v2.2.1 gorm.io/driver/postgres v1.5.7 @@ -25,62 +25,90 @@ require ( require ( github.com/KyleBanks/depth v1.2.1 // indirect + github.com/Masterminds/goutils v1.1.1 // indirect + github.com/Masterminds/semver/v3 v3.2.1 // indirect + github.com/Masterminds/sprig/v3 v3.2.3 // indirect github.com/PuerkitoBio/purell v1.1.1 // indirect github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect + github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bytedance/sonic v1.9.1 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect + github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/gabriel-vasile/mimetype v1.4.3 // indirect github.com/gin-contrib/sse v0.1.0 // indirect - github.com/go-openapi/jsonpointer v0.19.5 // indirect - github.com/go-openapi/jsonreference v0.19.6 // indirect - github.com/go-openapi/spec v0.20.4 // indirect - github.com/go-openapi/swag v0.19.15 // indirect + github.com/go-openapi/analysis v0.23.0 // indirect + github.com/go-openapi/errors v0.22.0 // indirect + github.com/go-openapi/inflect v0.21.0 // indirect + github.com/go-openapi/jsonpointer v0.21.0 // indirect + github.com/go-openapi/jsonreference v0.21.0 // indirect + github.com/go-openapi/loads v0.22.0 // indirect + github.com/go-openapi/runtime v0.28.0 // indirect + github.com/go-openapi/spec v0.21.0 // indirect + github.com/go-openapi/strfmt v0.23.0 // indirect + github.com/go-openapi/swag v0.23.0 // indirect + github.com/go-openapi/validate v0.24.0 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect + github.com/go-swagger/go-swagger v0.31.0 // indirect github.com/goccy/go-json v0.10.2 // indirect + github.com/gorilla/handlers v1.5.2 // indirect github.com/hashicorp/hcl v1.0.0 // indirect + github.com/huandu/xstrings v1.5.0 // indirect + github.com/imdario/mergo v0.3.16 // indirect github.com/jackc/pgpassfile v1.0.0 // indirect github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect github.com/jackc/pgx/v5 v5.4.3 // indirect + github.com/jessevdk/go-flags v1.6.1 // indirect github.com/jinzhu/inflection v1.0.0 // indirect github.com/jinzhu/now v1.1.5 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/klauspost/cpuid/v2 v2.2.4 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/text v0.2.0 // indirect github.com/leodido/go-urn v1.4.0 // indirect github.com/magiconair/properties v1.8.7 // indirect - github.com/mailru/easyjson v0.7.6 // indirect + github.com/mailru/easyjson v0.7.7 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.19 // indirect + github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/oklog/ulid v1.3.1 // indirect github.com/patrickmn/go-cache v2.1.0+incompatible // indirect - github.com/pelletier/go-toml/v2 v2.1.0 // indirect + github.com/pelletier/go-toml/v2 v2.2.2 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/prometheus/client_model v0.5.0 // indirect github.com/prometheus/common v0.48.0 // indirect github.com/prometheus/procfs v0.12.0 // indirect - github.com/sagikazarmark/locafero v0.4.0 // indirect + github.com/rogpeppe/go-internal v1.12.0 // indirect + github.com/sagikazarmark/locafero v0.6.0 // indirect github.com/sagikazarmark/slog-shim v0.1.0 // indirect + github.com/shopspring/decimal v1.4.0 // indirect github.com/sourcegraph/conc v0.3.0 // indirect github.com/spf13/afero v1.11.0 // indirect github.com/spf13/cast v1.6.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/subosito/gotenv v1.6.0 // indirect + github.com/toqueteos/webbrowser v1.2.0 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.11 // indirect - go.uber.org/multierr v1.10.0 // indirect + go.mongodb.org/mongo-driver v1.16.0 // indirect + go.uber.org/multierr v1.11.0 // indirect golang.org/x/arch v0.3.0 // indirect - golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect - golang.org/x/net v0.21.0 // indirect - golang.org/x/sys v0.19.0 // indirect - golang.org/x/text v0.14.0 // indirect - golang.org/x/tools v0.13.0 // indirect - google.golang.org/protobuf v1.32.0 // indirect + golang.org/x/exp v0.0.0-20240707233637-46b078467d37 // indirect + golang.org/x/mod v0.19.0 // indirect + golang.org/x/net v0.27.0 // indirect + golang.org/x/sync v0.7.0 // indirect + golang.org/x/sys v0.22.0 // indirect + golang.org/x/text v0.16.0 // indirect + golang.org/x/tools v0.23.0 // indirect + google.golang.org/protobuf v1.33.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/src/go.sum b/src/go.sum index 6a1a881..42a42f1 100644 --- a/src/go.sum +++ b/src/go.sum @@ -1,9 +1,18 @@ github.com/KyleBanks/depth v1.2.1 h1:5h8fQADFrWtarTdtDudMmGsC7GPbOAu6RVB3ffsVFHc= github.com/KyleBanks/depth v1.2.1/go.mod h1:jzSb9d0L43HxTQfT+oSA1EEp2q+ne2uh6XgeJcm8brE= +github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= +github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= +github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0= +github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= +github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI= github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= +github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= +github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM= @@ -22,6 +31,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1 github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/didip/tollbooth v4.0.2+incompatible h1:fVSa33JzSz0hoh2NxpwZtksAzAgd7zjmGO20HCZtF4M= github.com/didip/tollbooth v4.0.2+incompatible/go.mod h1:A9b0665CE6l1KmzpDws2++elm/CsuWBMa5Jv4WY0PEY= +github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= +github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= @@ -35,16 +46,38 @@ github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= github.com/gin-gonic/gin v1.9.1 h1:4idEAncQnU5cB7BeOkPtxjfCSye0AAm1R0RVIqJ+Jmg= github.com/gin-gonic/gin v1.9.1/go.mod h1:hPrL7YrpYKXt5YId3A/Tnip5kqbEAP+KLuI3SUcPTeU= +github.com/go-openapi/analysis v0.23.0 h1:aGday7OWupfMs+LbmLZG4k0MYXIANxcuBTYUC03zFCU= +github.com/go-openapi/analysis v0.23.0/go.mod h1:9mz9ZWaSlV8TvjQHLl2mUW2PbZtemkE8yA5v22ohupo= +github.com/go-openapi/errors v0.22.0 h1:c4xY/OLxUBSTiepAg3j/MHuAv5mJhnf53LLMWFB+u/w= +github.com/go-openapi/errors v0.22.0/go.mod h1:J3DmZScxCDufmIMsdOuDHxJbdOGC0xtUynjIx092vXE= +github.com/go-openapi/inflect v0.21.0 h1:FoBjBTQEcbg2cJUWX6uwL9OyIW8eqc9k4KhN4lfbeYk= +github.com/go-openapi/inflect v0.21.0/go.mod h1:INezMuUu7SJQc2AyR3WO0DqqYUJSj8Kb4hBd7WtjlAw= github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= +github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= github.com/go-openapi/jsonreference v0.19.6 h1:UBIxjkht+AWIgYzCDSv2GN+E/togfwXUJFRTWhl2Jjs= github.com/go-openapi/jsonreference v0.19.6/go.mod h1:diGHMEHg2IqXZGKxqyvWdfWU/aim5Dprw5bqpKkTvns= +github.com/go-openapi/jsonreference v0.21.0 h1:Rs+Y7hSXT83Jacb7kFyjn4ijOuVGSvOdF2+tg1TRrwQ= +github.com/go-openapi/jsonreference v0.21.0/go.mod h1:LmZmgsrTkVg9LG4EaHeY8cBDslNPMo06cago5JNLkm4= +github.com/go-openapi/loads v0.22.0 h1:ECPGd4jX1U6NApCGG1We+uEozOAvXvJSF4nnwHZ8Aco= +github.com/go-openapi/loads v0.22.0/go.mod h1:yLsaTCS92mnSAZX5WWoxszLj0u+Ojl+Zs5Stn1oF+rs= +github.com/go-openapi/runtime v0.28.0 h1:gpPPmWSNGo214l6n8hzdXYhPuJcGtziTOgUpvsFWGIQ= +github.com/go-openapi/runtime v0.28.0/go.mod h1:QN7OzcS+XuYmkQLw05akXk0jRH/eZ3kb18+1KwW9gyc= github.com/go-openapi/spec v0.20.4 h1:O8hJrt0UMnhHcluhIdUgCLRWyM2x7QkBXRvOs7m+O1M= github.com/go-openapi/spec v0.20.4/go.mod h1:faYFR1CvsJZ0mNsmsphTMSoRrNV3TEDoAM7FOEWeq8I= +github.com/go-openapi/spec v0.21.0 h1:LTVzPc3p/RzRnkQqLRndbAzjY0d0BCL72A6j3CdL9ZY= +github.com/go-openapi/spec v0.21.0/go.mod h1:78u6VdPw81XU44qEWGhtr982gJ5BWg2c0I5XwVMotYk= +github.com/go-openapi/strfmt v0.23.0 h1:nlUS6BCqcnAk0pyhi9Y+kdDVZdZMHfEKQiS4HaMgO/c= +github.com/go-openapi/strfmt v0.23.0/go.mod h1:NrtIpfKtWIygRkKVsxh7XQMDQW5HKQl6S5ik2elW+K4= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.15 h1:D2NRCBzS9/pEY3gP9Nl8aDqGUcPFrwG2p+CNFrLyrCM= github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= +github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= +github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= +github.com/go-openapi/validate v0.24.0 h1:LdfDKwNbpB6Vn40xhTdNZAnfLECL81w+VX3BumrGD58= +github.com/go-openapi/validate v0.24.0/go.mod h1:iyeX1sEufmv3nPbBdX3ieNviWnOZaJ1+zquzJEf2BAQ= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= @@ -55,6 +88,8 @@ github.com/go-playground/validator/v10 v10.19.0 h1:ol+5Fu+cSq9JD7SoSqe04GMI92cbn github.com/go-playground/validator/v10 v10.19.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM= github.com/go-redis/redis/v7 v7.4.1 h1:PASvf36gyUpr2zdOUS/9Zqc80GbM+9BDyiJSJDDOrTI= github.com/go-redis/redis/v7 v7.4.1/go.mod h1:JDNMw23GTyLNC4GZu9njt15ctBQVn7xjRfnwdHj/Dcg= +github.com/go-swagger/go-swagger v0.31.0 h1:H8eOYQnY2u7vNKWDNykv2xJP3pBhRG/R+SOCAmKrLlc= +github.com/go-swagger/go-swagger v0.31.0/go.mod h1:WSigRRWEig8zV6t6Sm8Y+EmUjlzA/HoaZJ5edupq7po= github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= @@ -65,18 +100,29 @@ github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5y github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/gorilla/handlers v1.5.2 h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE= +github.com/gorilla/handlers v1.5.2/go.mod h1:dX+xVpaxdSw+q0Qek8SSsl3dfMk3jNddUkMzo0GtH0w= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI= +github.com/huandu/xstrings v1.5.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= +github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4= +github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM= github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a h1:bbPeKD0xmW/Y25WS6cokEszi5g+S0QxI/d45PkRi7Nk= github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM= github.com/jackc/pgx/v5 v5.4.3 h1:cxFyXhxlvAifxnkKKdlxv8XqUf59tDlYjnV5YYfsJJY= github.com/jackc/pgx/v5 v5.4.3/go.mod h1:Ig06C2Vu0t5qXC60W8sqIthScaEnFvojjj9dSljmHRA= +github.com/jessevdk/go-flags v1.6.1 h1:Cvu5U8UGrLay1rZfv/zP7iLpSHGUZ/Ou68T0iX1bBK4= +github.com/jessevdk/go-flags v1.6.1/go.mod h1:Mk8T1hIAWpOiJiHa9rJASDK2UGWji0EuPGBnNLMooyc= github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ= @@ -103,19 +149,29 @@ github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.7.6 h1:8yTIVnZgCoiM1TgqoeTl+LfU5Jg6/xL3QhGQnimLYnA= github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= +github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= +github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= +github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= +github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= +github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.10.1 h1:q/mM8GF/n0shIN8SaAZ0V+jnLPzen6WIVZdiwrRlMlo= github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -125,6 +181,9 @@ github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaR github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/pelletier/go-toml/v2 v2.1.0 h1:FnwAJ4oYMvbT/34k9zzHuZNrhlz48GB3/s6at6/MHO4= github.com/pelletier/go-toml/v2 v2.1.0/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= +github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= +github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -138,29 +197,43 @@ github.com/prometheus/common v0.48.0 h1:QO8U2CdOzSn1BBsmXJXduaaW+dY/5QLjfB8svtSz github.com/prometheus/common v0.48.0/go.mod h1:0/KsvlIEfPQCQ5I2iNSAWKPZziNCvRs5EC6ILDTlAPc= github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo= github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= +github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= +github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/zerolog v1.32.0 h1:keLypqrlIjaFsbmJOBdB/qvyF8KEtCWHwobLp5l/mQ0= github.com/rs/zerolog v1.32.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ= github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= +github.com/sagikazarmark/locafero v0.6.0 h1:ON7AQg37yzcRPU69mt7gwhFEBwxI6P9T4Qu3N51bwOk= +github.com/sagikazarmark/locafero v0.6.0/go.mod h1:77OmuIc6VTraTXKXIs/uvUxKGUXjE1GbemJYHqdNjX0= github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= +github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= +github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k= +github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME= github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= +github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= +github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI= +github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= @@ -168,6 +241,7 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/swaggo/files v1.0.1 h1:J1bVJ4XHZNq0I46UU90611i9/YzdrF7x92oX1ig5IdE= @@ -176,15 +250,21 @@ github.com/swaggo/gin-swagger v1.6.0 h1:y8sxvQ3E20/RCyrXeFfg60r6H0Z+SwpTjMYsMm+z github.com/swaggo/gin-swagger v1.6.0/go.mod h1:BG00cCEy294xtVpyIAHG6+e2Qzj/xKlRdOqDkvq0uzo= github.com/swaggo/swag v1.16.3 h1:PnCYjPCah8FK4I26l2F/KQ4yz3sILcVUN3cTlBFA9Pg= github.com/swaggo/swag v1.16.3/go.mod h1:DImHIuOFXKpMFAQjcC7FG4m3Dg4+QuUgUzJmKjI/gRk= +github.com/toqueteos/webbrowser v1.2.0 h1:tVP/gpK69Fx+qMJKsLE7TD8LuGWPnEV71wBN9rrstGQ= +github.com/toqueteos/webbrowser v1.2.0/go.mod h1:XWoZq4cyp9WeUeak7w7LXRUQf1F1ATJMir8RTqb4ayM= github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +go.mongodb.org/mongo-driver v1.16.0 h1:tpRsfBJMROVHKpdGyc1BBEzzjDUWjItxbVSZ8Ls4BQ4= +go.mongodb.org/mongo-driver v1.16.0/go.mod h1:oB6AhJQvFQL4LEHyXi6aJzQJtBiTQHiAd83l0GdFaiw= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ= go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= @@ -192,25 +272,37 @@ golang.org/x/arch v0.3.0 h1:02VY4/ZcO/gBOH6PUaoiptASxtXU10jazRCP865E97k= golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= +golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30= +golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M= golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g= golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k= +golang.org/x/exp v0.0.0-20240707233637-46b078467d37 h1:uLDX+AfeFCct3a2C7uIWBKMJIR3CJMhcgfrUAqjRK6w= +golang.org/x/exp v0.0.0-20240707233637-46b078467d37/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.19.0 h1:fEdghXQSo20giMthA7cd28ZC+jts4amQ3YMXiP5oMQ8= +golang.org/x/mod v0.19.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210421230115-4e50805a0758/go.mod h1:72T/g9IO56b78aLF+1Kcs5dz7/ng1VjMUvfKvpfy+jM= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= +golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= +golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -221,22 +313,29 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= +golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -244,9 +343,13 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.13.0 h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ= golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= +golang.org/x/tools v0.23.0 h1:SGsXPZ+2l4JsgaCKkx+FQ9YZ5XEtA1GZYuoDjenLjvg= +golang.org/x/tools v0.23.0/go.mod h1:pnu6ufv6vQkll6szChhK3C3L/ruaIv5eBeztNG8wtsI= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= +google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -264,6 +367,7 @@ gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWD gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/src/swagger.yaml b/src/swagger.yaml new file mode 100644 index 0000000..a26c975 --- /dev/null +++ b/src/swagger.yaml @@ -0,0 +1,2 @@ +paths: {} +swagger: "2.0"