{ "swagger": "2.0", "info": { "version": "1.0", "title": "4anna API", "description": "This is a Swagger documentation for 4anna API" }, "host": "localhost:7000", "basePath": "/", "schemes": [ "http" ], "securityDefinitions": { "apiKeyAuth": { "type": "apiKey", "in": "header", "name": "Authorization", "description": "Example: Bearer e2xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } }, "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/user/login": { "post": { "tags": [ "User" ], "summary": "For login", "description": "Just a login thing", "parameters": [ { "name": "email, password", "in": "body", "schema": { "type": "object", "properties": { "email": { "example": "any" }, "password": { "example": "any" } } }, "description": "Email and password of the user" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" } } } }, "/user/register": { "post": { "tags": [ "User" ], "summary": "For signup", "description": "Register a new user", "parameters": [ { "name": "email, password", "in": "body", "schema": { "type": "object", "properties": { "email": { "example": "any" }, "username": { "example": "any" }, "address": { "example": "any" }, "password": { "example": "any" }, "name": { "example": "any" }, "phone": { "example": "any" } } }, "description": "Email and password of the user" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/user/emailVerify": { "post": { "tags": [ "User" ], "summary": "Verify account/email", "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "token": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "501": { "description": "Not Implemented" } } } }, "/user/forgotPassword": { "get": { "tags": [ "User" ], "summary": "Request a forgot password link in email", "description": "", "parameters": [ { "name": "email", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/user/resetPassword": { "post": { "tags": [ "User" ], "summary": "We will use this end point to reset password", "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "token": { "example": "any" }, "password": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/user/changePassword": { "post": { "tags": [ "User" ], "summary": "In user setting, this is where we change our password rom.", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "oldPassword": { "example": "any" }, "newPassword": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/user/checkfav": { "post": { "tags": [ "User" ], "summary": "Check all the faved items of a user, type=blog, estate, or no query for all", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/user/tokenverify": { "get": { "tags": [ "User" ], "summary": "For token verification", "description": "Verify the token sent in email", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" } } } }, "/user/update": { "post": { "tags": [ "User" ], "summary": "Update user profile", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "name": { "example": "any" }, "phone": { "example": "any" }, "address": { "example": "any" }, "userDP": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/user/becomeAnAgent": { "post": { "tags": [ "User" ], "summary": "Become an agent", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "name": { "example": "any" }, "phone": { "example": "any" }, "address": { "example": "any" }, "userDP": { "example": "any" }, "identityDoc": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/user/fetch": { "post": { "tags": [ "User" ], "summary": "Get user, with filter featured, query with any key in db", "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "_id": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "501": { "description": "Not Implemented" } } } }, "/user/checkSubscription": { "get": { "tags": [ "User" ], "summary": "Check if user is subscribed or not", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/user/list": { "get": { "tags": [ "Admin-User" ], "summary": "Get all users for admin", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "_id", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/user/remove/{id}": { "delete": { "tags": [ "Admin-User" ], "summary": "Remove a user", "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "Authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" } } } }, "/blog/": { "post": { "tags": [ "Blog-Admin" ], "summary": "Post a blog", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "title": { "example": "any" }, "coverPhoto": { "example": "any" }, "description": { "example": "any" }, "content": { "example": "any" }, "tag": { "example": "any" }, "readingTime": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" } } }, "delete": { "tags": [ "Blog-Admin" ], "summary": "Deletes a blog", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "_id": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" } } }, "patch": { "tags": [ "Blog-Admin" ], "summary": "Updates a blog", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "_id": { "example": "any" }, "title": { "example": "any" }, "description": { "example": "any" }, "coverPhoto": { "example": "any" }, "content": { "example": "any" }, "tag": { "example": "any" }, "readingTime": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/blog/fetch": { "post": { "tags": [ "Blog" ], "summary": "Gets all the blogs", "description": "", "parameters": [ { "name": "cardview", "in": "query", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "_id": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "501": { "description": "Not Implemented" } } } }, "/blog/tags": { "get": { "tags": [ "Blog" ], "summary": "Gets all the tags", "description": "", "parameters": [], "responses": { "200": { "description": "OK" }, "501": { "description": "Not Implemented" } } } }, "/blog/interact": { "patch": { "tags": [ "Blog" ], "summary": "fav or comment on a blog", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "type", "in": "query", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "_id": { "example": "any" }, "comment": { "example": "any" }, "like": { "example": "any" }, "rating": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/image/upload": { "post": { "tags": [ "Image", "others" ], "summary": "Image universal. purpose can be 'dp', 'blog' and 'post' or ", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "purpose": { "example": "any" }, "media": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" }, "501": { "description": "Not Implemented" } } } }, "/image/upload/bypass": { "post": { "tags": [ "Image", "others" ], "summary": "Image universal. purpose can be 'dp', 'blog' and 'post' or ", "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "purpose": { "example": "any" }, "media": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" }, "501": { "description": "Not Implemented" } } } }, "/admin/login": { "post": { "tags": [ "Admin" ], "summary": "[\"Admin login endpoint\"]", "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "email": { "example": "any" }, "password": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" } } } }, "/admin/stats": { "get": { "tags": [ "Admin" ], "summary": "[\"Admin stat endpoint, send number of days in filter to get stats of that many days\"]", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/admin/subscribe": { "post": { "tags": [ "Admin" ], "summary": "[\"Admin subscribe user endpoint\"]", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "userID": { "example": "any" }, "package": { "example": "any" }, "expireAfterDays": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" }, "501": { "description": "Not Implemented" } } } }, "/estate/": { "post": { "tags": [ "Estate" ], "summary": "Create a new estate post", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "estateTitle": { "example": "any" }, "estateType": { "example": "any" }, "address": { "example": "any" }, "mode": { "example": "any" }, "images": { "example": "any" }, "metadata": { "example": "any" }, "price": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } }, "delete": { "tags": [ "Estate" ], "summary": "Delete a estate post", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "_id": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } }, "patch": { "tags": [ "Estate" ], "summary": "Update a estate", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "_id": { "example": "any" }, "estateTitle": { "example": "any" }, "address": { "example": "any" }, "mode": { "example": "any" }, "images": { "example": "any" }, "sold": { "example": "any" }, "metadata": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/estate/fetch": { "post": { "tags": [ "Estate" ], "summary": "Get estate, with filter featured, query with any key in db", "description": "If cardview is enabled, it will return only the basic info of the estate, otherwise it will return all the info of the estate", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "cardview", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "501": { "description": "Not Implemented" } } } }, "/estate/comment/{id}": { "post": { "tags": [ "Estate" ], "summary": "Comment on estate", "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "comment": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } }, "get": { "tags": [ "Estate" ], "summary": "Load Estate specefic comments", "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/estate/fav/toggle/{id}": { "get": { "tags": [ "Estate" ], "summary": "Favourite/ estate, toggle", "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "Authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/estate/reply/{id}": { "post": { "tags": [ "Estate" ], "summary": "Reply on comments", "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "reply": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/estate/feature/toggle/{id}": { "patch": { "tags": [ "Estate-Admin" ], "summary": "Estate feature post - toggle", "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "Authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/estate/inquire/{id}": { "post": { "tags": [ "Estate" ], "summary": "Inquire about estate", "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "message": { "example": "any" }, "email": { "example": "any" }, "name": { "example": "any" }, "phone": { "example": "any" }, "who": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/estate/inquiries/count/{id}": { "get": { "tags": [ "Estate" ], "summary": "Count all inquiries for an estate or just a get trquest without id to get all inquiries count", "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "Authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/estate/inquiries": { "get": { "tags": [ "Estate" ], "summary": "Get all inquiries for an or all estate", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "id", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/estate/boost/{id}": { "post": { "tags": [ "Estate" ], "summary": "Boost post", "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "days": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/estate/boosted": { "get": { "tags": [ "Estate" ], "summary": "Get boosted estate", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "501": { "description": "Not Implemented" } } } }, "/estate/trending": { "get": { "tags": [ "Estate" ], "summary": "Get trending estate", "description": "", "parameters": [ { "name": "timeRange", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "501": { "description": "Not Implemented" } } } }, "/estate/hot": { "get": { "tags": [ "Estate" ], "summary": "Get hot estate", "description": "", "parameters": [ { "name": "count", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/estate/random": { "get": { "tags": [ "Estate" ], "summary": "Get random estates", "description": "", "parameters": [], "responses": { "200": { "description": "OK" }, "501": { "description": "Not Implemented" } } } }, "/agent/verify/action": { "post": { "tags": [ "Agent-Admin" ], "summary": "Verify agent account, from the agentForm id, also can be used to reject", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" } ], "responses": { "401": { "description": "Unauthorized" } } } }, "/agent/forms": { "get": { "tags": [ "Agent-admin" ], "summary": "[\"Get all the forms submited to become an agent\"]", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/agent/info": { "get": { "tags": [ "Agent-Admin" ], "summary": "Show info of single, or according to type or all", "description": "", "parameters": [ { "name": "_id", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "501": { "description": "Not Implemented" } } } }, "/agent/makeAgent/{id}": { "get": { "tags": [ "Agent-admin" ], "summary": "[\"Make an agent from a user\"]", "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "Authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/agent/stats": { "get": { "tags": [ "Agent" ], "summary": "[\"Agent stats\"]", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/payment/khalti/new": { "post": { "tags": [ "Payment/Khalti" ], "summary": "Initiate payment new", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "package_name": { "example": "any" }, "duration": { "example": "any" }, "quantity": { "example": "any" }, "to": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/payment/khalti/verify": { "get": { "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/review/{id}": { "get": { "tags": [ "Review" ], "summary": "Load reviews", "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } }, "post": { "tags": [ "Review" ], "summary": "Give review", "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "message": { "example": "any" }, "stars": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/review/rating/{id}": { "get": { "tags": [ "Review" ], "summary": "Load rating", "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/notification/": { "get": { "tags": [ "Notification" ], "summary": "Fetch notification of user", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } }, "delete": { "tags": [ "Notification" ], "summary": "Delete notitifications, send array of noti ids", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "listOfNotiID": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } }, "patch": { "tags": [ "Notification" ], "summary": "Turn notification to seen, send array of noti ids to make them seen", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "listOfNotiID": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "501": { "description": "Not Implemented" } } } }, "/emailreport/": { "get": { "description": "", "parameters": [], "responses": { "200": { "description": "OK" } } }, "post": { "description": "", "parameters": [], "responses": { "200": { "description": "OK" } } } }, "/packages/show": { "get": { "description": "", "parameters": [], "responses": { "200": { "description": "OK" }, "501": { "description": "Not Implemented" } } } }, "/google/auth/check": { "post": { "tags": [ "User" ], "summary": "Check if user exists or not, if not then continue signup process", "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "gUserToken": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "501": { "description": "Not Implemented" } } } }, "/google/auth": { "post": { "tags": [ "User" ], "summary": "Signup with google or login if user already exists", "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "gUserToken": { "example": "any" }, "message": { "example": "any" }, "result": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "501": { "description": "Not Implemented" } } } }, "/career/": { "get": { "tags": [ "Admin-Career" ], "summary": "Get all career applications", "description": "", "parameters": [ { "name": "Authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } }, "post": { "tags": [ "Career" ], "summary": "Create a new career application", "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "fullName": { "example": "any" }, "email": { "example": "any" }, "phoneNumber": { "example": "any" }, "jobTitle": { "example": "any" }, "resume": { "example": "any" }, "coverLetter": { "example": "any" } } } } ], "responses": { "201": { "description": "Created" }, "500": { "description": "Internal Server Error" }, "501": { "description": "Not Implemented" } } } }, "/career/{id}/status": { "patch": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "Authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "status": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } } } }