{ "swagger": "2.0", "info": { "description": "API for Algo App", "title": "Algo API", "contact": {}, "version": "1.0" }, "basePath": "/api", "paths": { "/api/users/": { "get": { "description": "Returns all users", "produces": [ "application/json" ], "tags": [ "user" ], "summary": "Gets all users", "operationId": "get-all-users", "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/models.User" } } }, "404": { "description": "Failed to fetch users", "schema": { "type": "string" } } } } } }, "definitions": { "models.User": { "type": "object", "required": [ "email", "first_name", "last_name", "pass_word" ], "properties": { "created_at": { "type": "string", "example": "2023-09-20T16:34:50Z" }, "email": { "type": "string" }, "first_name": { "type": "string" }, "id": { "type": "integer", "example": 1 }, "last_name": { "type": "string" }, "pass_word": { "type": "string" }, "updated_at": { "type": "string", "example": "2023-09-20T16:34:50Z" } } } } }