diff --git a/docs/docs.go b/docs/docs.go deleted file mode 100644 index 615e077..0000000 --- a/docs/docs.go +++ /dev/null @@ -1,206 +0,0 @@ -// Package docs Code generated by swaggo/swag. DO NOT EDIT -package docs - -import "github.com/swaggo/swag" - -const docTemplate = `{ - "schemes": {{ marshal .Schemes }}, - "swagger": "2.0", - "info": { - "description": "{{escape .Description}}", - "title": "{{.Title}}", - "contact": {}, - "version": "{{.Version}}" - }, - "host": "{{.Host}}", - "basePath": "{{.BasePath}}", - "paths": { - "/fill/{height}/{width}/{image}": { - "get": { - "description": "Resize image by URL address", - "consumes": [ - "multipart/form" - ], - "tags": [ - "fill" - ], - "summary": "Fill", - "operationId": "fill", - "parameters": [ - { - "type": "string", - "description": "Height", - "name": "height", - "in": "path", - "required": true - }, - { - "type": "string", - "description": "Width", - "name": "width", - "in": "path", - "required": true - }, - { - "type": "string", - "description": "Image URL address", - "name": "image", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Ok", - "schema": { - "$ref": "#/definitions/http.ResponseForm" - } - }, - "400": { - "description": "Client error", - "schema": { - "$ref": "#/definitions/http.BadRequestForm" - } - }, - "502": { - "description": "Gateway error", - "schema": { - "$ref": "#/definitions/http.BadRequestForm" - } - }, - "503": { - "description": "Server does not available\".", - "schema": { - "$ref": "#/definitions/http.ServerErrorForm" - } - } - } - } - }, - "/hello/": { - "get": { - "description": "Check service is available", - "produces": [ - "application/json" - ], - "tags": [ - "hello" - ], - "summary": "Hello", - "operationId": "hello", - "responses": { - "200": { - "description": "Ok", - "schema": { - "$ref": "#/definitions/http.ResponseForm" - } - }, - "503": { - "description": "Server does not available\".", - "schema": { - "$ref": "#/definitions/http.ServerErrorForm" - } - } - } - } - }, - "/tests/tests.jpg": { - "get": { - "description": "Resize image by URL address", - "produces": [ - "multipart/form" - ], - "tags": [ - "tests" - ], - "summary": "TestDownload", - "operationId": "tests-download", - "responses": { - "200": { - "description": "Ok", - "schema": { - "$ref": "#/definitions/http.ResponseForm" - } - }, - "400": { - "description": "Client error", - "schema": { - "$ref": "#/definitions/http.BadRequestForm" - } - }, - "502": { - "description": "Gateway error", - "schema": { - "$ref": "#/definitions/http.BadRequestForm" - } - }, - "503": { - "description": "Server does not available\".", - "schema": { - "$ref": "#/definitions/http.ServerErrorForm" - } - } - } - } - } - }, - "definitions": { - "http.BadRequestForm": { - "type": "object", - "properties": { - "message": { - "type": "string", - "example": "Bad Request message" - }, - "status": { - "type": "integer", - "example": 400 - } - } - }, - "http.ResponseForm": { - "type": "object", - "properties": { - "message": { - "type": "string", - "example": "Done" - }, - "status": { - "type": "integer", - "example": 200 - } - } - }, - "http.ServerErrorForm": { - "type": "object", - "properties": { - "message": { - "type": "string", - "example": "Server Error message" - }, - "status": { - "type": "integer", - "example": 503 - } - } - } - } -}` - -// SwaggerInfo holds exported Swagger Info so clients can modify it -var SwaggerInfo = &swag.Spec{ - Version: "", - Host: "", - BasePath: "", - Schemes: []string{}, - Title: "", - Description: "", - InfoInstanceName: "swagger", - SwaggerTemplate: docTemplate, - LeftDelim: "{{", - RightDelim: "}}", -} - -func init() { - swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) -} diff --git a/docs/swagger.json b/docs/swagger.json deleted file mode 100644 index c8403ec..0000000 --- a/docs/swagger.json +++ /dev/null @@ -1,177 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "contact": {} - }, - "paths": { - "/fill/{height}/{width}/{image}": { - "get": { - "description": "Resize image by URL address", - "consumes": [ - "multipart/form" - ], - "tags": [ - "fill" - ], - "summary": "Fill", - "operationId": "fill", - "parameters": [ - { - "type": "string", - "description": "Height", - "name": "height", - "in": "path", - "required": true - }, - { - "type": "string", - "description": "Width", - "name": "width", - "in": "path", - "required": true - }, - { - "type": "string", - "description": "Image URL address", - "name": "image", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Ok", - "schema": { - "$ref": "#/definitions/http.ResponseForm" - } - }, - "400": { - "description": "Client error", - "schema": { - "$ref": "#/definitions/http.BadRequestForm" - } - }, - "502": { - "description": "Gateway error", - "schema": { - "$ref": "#/definitions/http.BadRequestForm" - } - }, - "503": { - "description": "Server does not available\".", - "schema": { - "$ref": "#/definitions/http.ServerErrorForm" - } - } - } - } - }, - "/hello/": { - "get": { - "description": "Check service is available", - "produces": [ - "application/json" - ], - "tags": [ - "hello" - ], - "summary": "Hello", - "operationId": "hello", - "responses": { - "200": { - "description": "Ok", - "schema": { - "$ref": "#/definitions/http.ResponseForm" - } - }, - "503": { - "description": "Server does not available\".", - "schema": { - "$ref": "#/definitions/http.ServerErrorForm" - } - } - } - } - }, - "/tests/tests.jpg": { - "get": { - "description": "Resize image by URL address", - "produces": [ - "multipart/form" - ], - "tags": [ - "tests" - ], - "summary": "TestDownload", - "operationId": "tests-download", - "responses": { - "200": { - "description": "Ok", - "schema": { - "$ref": "#/definitions/http.ResponseForm" - } - }, - "400": { - "description": "Client error", - "schema": { - "$ref": "#/definitions/http.BadRequestForm" - } - }, - "502": { - "description": "Gateway error", - "schema": { - "$ref": "#/definitions/http.BadRequestForm" - } - }, - "503": { - "description": "Server does not available\".", - "schema": { - "$ref": "#/definitions/http.ServerErrorForm" - } - } - } - } - } - }, - "definitions": { - "http.BadRequestForm": { - "type": "object", - "properties": { - "message": { - "type": "string", - "example": "Bad Request message" - }, - "status": { - "type": "integer", - "example": 400 - } - } - }, - "http.ResponseForm": { - "type": "object", - "properties": { - "message": { - "type": "string", - "example": "Done" - }, - "status": { - "type": "integer", - "example": 200 - } - } - }, - "http.ServerErrorForm": { - "type": "object", - "properties": { - "message": { - "type": "string", - "example": "Server Error message" - }, - "status": { - "type": "integer", - "example": 503 - } - } - } - } -} \ No newline at end of file diff --git a/docs/swagger.yaml b/docs/swagger.yaml deleted file mode 100644 index 0a83788..0000000 --- a/docs/swagger.yaml +++ /dev/null @@ -1,118 +0,0 @@ -definitions: - http.BadRequestForm: - properties: - message: - example: Bad Request message - type: string - status: - example: 400 - type: integer - type: object - http.ResponseForm: - properties: - message: - example: Done - type: string - status: - example: 200 - type: integer - type: object - http.ServerErrorForm: - properties: - message: - example: Server Error message - type: string - status: - example: 503 - type: integer - type: object -info: - contact: {} -paths: - /fill/{height}/{width}/{image}: - get: - consumes: - - multipart/form - description: Resize image by URL address - operationId: fill - parameters: - - description: Height - in: path - name: height - required: true - type: string - - description: Width - in: path - name: width - required: true - type: string - - description: Image URL address - in: path - name: image - required: true - type: string - responses: - "200": - description: Ok - schema: - $ref: '#/definitions/http.ResponseForm' - "400": - description: Client error - schema: - $ref: '#/definitions/http.BadRequestForm' - "502": - description: Gateway error - schema: - $ref: '#/definitions/http.BadRequestForm' - "503": - description: Server does not available". - schema: - $ref: '#/definitions/http.ServerErrorForm' - summary: Fill - tags: - - fill - /hello/: - get: - description: Check service is available - operationId: hello - produces: - - application/json - responses: - "200": - description: Ok - schema: - $ref: '#/definitions/http.ResponseForm' - "503": - description: Server does not available". - schema: - $ref: '#/definitions/http.ServerErrorForm' - summary: Hello - tags: - - hello - /tests/tests.jpg: - get: - description: Resize image by URL address - operationId: tests-download - produces: - - multipart/form - responses: - "200": - description: Ok - schema: - $ref: '#/definitions/http.ResponseForm' - "400": - description: Client error - schema: - $ref: '#/definitions/http.BadRequestForm' - "502": - description: Gateway error - schema: - $ref: '#/definitions/http.BadRequestForm' - "503": - description: Server does not available". - schema: - $ref: '#/definitions/http.ServerErrorForm' - summary: TestDownload - tags: - - tests -swagger: "2.0"