basePath: / definitions: history-api_internal_dtos_request.SignInDto: properties: email: maxLength: 255 minLength: 5 type: string password: maxLength: 64 minLength: 8 type: string required: - email - password type: object history-api_internal_dtos_request.SignUpDto: properties: display_name: maxLength: 50 minLength: 2 type: string email: maxLength: 255 minLength: 5 type: string password: maxLength: 64 minLength: 8 type: string required: - display_name - email - password type: object history-api_internal_dtos_response.CommonResponse: properties: data: {} message: type: string status: type: boolean type: object host: localhost:3344 info: contact: email: support@swagger.io name: API Support url: http://www.swagger.io/support description: This is a sample server for History API. license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html termsOfService: http://swagger.io/terms/ title: History API version: "1.0" paths: /auth/refresh: post: consumes: - application/json description: Get a new access token using the user's current session/refresh token produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/history-api_internal_dtos_response.CommonResponse' "500": description: Internal Server Error schema: $ref: '#/definitions/history-api_internal_dtos_response.CommonResponse' security: - BearerAuth: [] summary: Refresh access token tags: - Auth /auth/signin: post: consumes: - application/json description: Authenticate user and return token data parameters: - description: Sign In request in: body name: request required: true schema: $ref: '#/definitions/history-api_internal_dtos_request.SignInDto' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/history-api_internal_dtos_response.CommonResponse' "400": description: Bad Request schema: $ref: '#/definitions/history-api_internal_dtos_response.CommonResponse' "500": description: Internal Server Error schema: $ref: '#/definitions/history-api_internal_dtos_response.CommonResponse' summary: Sign in an existing user tags: - Auth /auth/signup: post: consumes: - application/json description: Create a new user account parameters: - description: Sign Up request in: body name: request required: true schema: $ref: '#/definitions/history-api_internal_dtos_request.SignUpDto' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/history-api_internal_dtos_response.CommonResponse' "400": description: Bad Request schema: $ref: '#/definitions/history-api_internal_dtos_response.CommonResponse' "500": description: Internal Server Error schema: $ref: '#/definitions/history-api_internal_dtos_response.CommonResponse' summary: Sign up a new user tags: - Auth /tiles/{z}/{x}/{y}: get: description: Fetch vector or raster map tile data by Z, X, Y coordinates parameters: - description: Zoom level (0-22) in: path name: z required: true type: integer - description: X coordinate in: path name: x required: true type: integer - description: Y coordinate in: path name: "y" required: true type: integer produces: - application/octet-stream responses: "200": description: OK schema: type: file "400": description: Bad Request schema: $ref: '#/definitions/history-api_internal_dtos_response.CommonResponse' "500": description: Internal Server Error schema: $ref: '#/definitions/history-api_internal_dtos_response.CommonResponse' summary: Get a map tile tags: - Tile /tiles/metadata: get: consumes: - application/json description: Retrieve map metadata produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/history-api_internal_dtos_response.CommonResponse' "500": description: Internal Server Error schema: $ref: '#/definitions/history-api_internal_dtos_response.CommonResponse' summary: Get tile metadata tags: - Tile securityDefinitions: BearerAuth: description: Type "Bearer " followed by a space and JWT token. in: header name: Authorization type: apiKey swagger: "2.0"