{ "openapi": "3.0.0", "info": { "title": "API assignment", "description": "", "version": "1.0.0" }, "servers": [ { "url": "http://localhost:5000" } ], "components": { "securitySchemes": { "bearerAuth": { "type": "http", "scheme": "bearer" } } }, "paths": { "/api/v1/user/signup": { "post": { "tags": ["User"], "summary": "Signup", "requestBody": { "content": { "application/json": { "schema": { "type": "object", "example": { "name": "Srijan Gupta", "email": "gupta.srijan94@gmail.com", "password": "59592449" } } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": {} } } } } }, "/api/v1/user/login": { "post": { "tags": ["User"], "summary": "Login", "requestBody": { "content": { "application/json": { "schema": { "type": "object", "example": { "email": "gupta.srijan94@gmail.com", "password": "59592449" } } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": {} } } } } }, "/api/v1/ticket/": { "post": { "tags": ["Ticket"], "summary": "Create Ticket", "requestBody": { "content": {} }, "security": [ { "bearerAuth": [] } ], "parameters": [ { "name": "count", "in": "query", "schema": { "type": "integer" }, "example": "6" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": {} } } } }, "get": { "tags": ["Ticket"], "summary": "Get all tickets by user", "security": [ { "bearerAuth": [] } ], "parameters": [ { "name": "count", "in": "query", "schema": { "type": "integer" }, "example": "10" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": {} } } } } }, "/api/v1/ticket/{id}": { "get": { "tags": ["Ticket"], "summary": "Get one ticket by id", "security": [ { "bearerAuth": [] } ], "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "example": "64956117e0739a3638b7fe9d" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": {} } } } } }, "/api/v1/user/me": { "get": { "tags": ["User"], "summary": "Get user details", "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": {} } } } } } } }