{"openapi":"3.0.0","info":{"version":"1.0","title":"API Documentation","description":"Welcome to 1HourDeveloper API Documentation, for any queries related to API please reach out via email or connect with support team. For any queries please reach us at support@1hourdeveloper.com","contact":{"name":"Click for API version 2.0","url":"https://app.swaggerhub.com/apis-docs/ONEHRDEVELOPER_1/1HourDeveloper/2.0"},"license":{"name":"Copyright 2023, All Rights Reserved"}},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/ONEHRDEVELOPER_1/1HourDeveloper/1.0"},{"description":"1HourDeveloper Development Server","url":"https://uat.1hourdeveloper.com/api/"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Auth"},{"name":"Developer"},{"name":"Admin"},{"name":"Client"},{"name":"Common"},{"name":"Video"},{"name":"Root API"},{"name":"Payment"}],"paths":{"/login":{"post":{"tags":["Auth"],"description":"Verifies a user and returns Tokenid, user details & account type","operationId":"login","parameters":[{"name":"email","in":"query","description":"Registered email address of the user","required":true,"style":"form","explode":true,"schema":{"type":"string","example":"john@gmail.com"}},{"name":"password","in":"query","description":"password of the user","required":true,"style":"form","explode":true,"schema":{"type":"string","example":"123@45"}}],"responses":{"200":{"description":"User is recognized and token is sent with user object and user type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Login"}}}},"400":{"description":"Error 400 - If incorrect credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"422":{"description":"Error 422 - If request method is not appropriate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/422"}}}}}}},"/developer/register/":{"post":{"tags":["Auth"],"description":"This endpoint is for developer registration","operationId":"Register developer","parameters":[{"name":"name","in":"query","description":"Name of developer","required":true,"schema":{"type":"string"}},{"name":"email","in":"query","description":"Email address of developer","required":true,"schema":{"type":"string"}},{"name":"password","in":"query","description":"Password field","required":true,"schema":{"type":"string"}},{"name":"phone","in":"query","description":"Phone number of developer","required":true,"schema":{"type":"string"}},{"name":"location","in":"query","description":"Location field of developer","required":true,"schema":{"type":"string"}},{"name":"socialUrl","in":"query","description":"Github url of the developer","required":true,"schema":{"type":"string"}},{"name":"experience","in":"query","description":"Skills of the developer","required":true,"schema":{"type":"string"}},{"name":"yearsOfExperience","in":"query","description":"Number of years of experience of developer","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns registered developer object with token"},"400":{"description":"Returns error message if failed to register"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/client/register":{"post":{"tags":["Auth"],"description":"This api is used to register client","operationId":"Register client account","parameters":[{"name":"name","in":"query","description":"Name of the client","required":true,"schema":{"type":"string"}},{"name":"email","in":"query","description":"Email of the client","required":true,"schema":{"type":"string"}},{"name":"phone","in":"query","description":"Phone number of the client","required":true,"schema":{"type":"string"}},{"name":"company","in":"query","description":"Company of the client","required":true,"schema":{"type":"string"}},{"name":"designation","in":"query","description":"Designation of the client","required":true,"schema":{"type":"string"}},{"name":"password","in":"query","description":"password to create account","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns success message if client registered successfully"},"400":{"description":"Returns error if account not created"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/admin/register":{"post":{"tags":["Auth"],"description":"This endpoint is used to create sub admin","operationId":"sub Admin Register","parameters":[{"name":"name","in":"query","description":"Name of the sub admin user","required":true,"schema":{"type":"string"}},{"name":"phone","in":"query","description":"phone number of sub admin user","required":true,"schema":{"type":"string"}},{"name":"email","in":"query","description":"Email id of sub admin user","required":true,"schema":{"type":"string"}},{"name":"password","in":"query","description":"Password to create account for given email id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns object of created account if registration is successful"},"400":{"description":"Returns error message if sub admin not created"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/admin/getUsers/getDeveloper":{"post":{"tags":["Admin"],"description":"This endpoint lists all the developers and also lists filtering fields such as locations, designations, experience total pagination and total records of the developer collection","operationId":"admin Get Developers","parameters":[{"name":"page","in":"query","description":"This is for pagination to return from index values from collection","required":false,"schema":{"type":"integer"}},{"name":"totalRecords","in":"query","description":"This is for pagination to set limit of records","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Returns array of all developers with total records and pagination"},"400":{"description":"Returns error if no data exist"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/admin/updateProfile/[:id]":{"put":{"tags":["Admin"],"description":"This api is used to edit/update developer profile details by the admin user","operationId":"admin update user","parameters":[{"name":"id","in":"query","description":"Admin id field","required":true,"schema":{"type":"string"}},{"name":"profilePic","in":"query","description":"Profile Pic url of developer","required":true,"schema":{"type":"string"}},{"name":"files","in":"query","description":"This is a developer profile image upload array","required":true,"schema":{"type":"array","items":{}}},{"name":"phone","in":"query","description":"Phone number of developer","required":true,"schema":{"type":"string"}},{"name":"socialUrl","in":"query","description":"Github url","required":true,"schema":{"type":"string"}},{"name":"experience","in":"query","description":"Experience field contains developer skills","required":true,"schema":{"type":"array","items":{}}},{"name":"languages","in":"query","description":"Languages known by developer","required":true,"schema":{"type":"array","items":{}}},{"name":"education","in":"query","description":"Education details","required":true,"schema":{"type":"array","items":{}}},{"name":"name","in":"query","description":"Name of developer","required":true,"schema":{"type":"string"}},{"name":"price","in":"query","description":"Price field","required":true,"schema":{"type":"string"}},{"name":"email","in":"query","description":"Email address of the developer","required":true,"schema":{"type":"string"}},{"name":"designation","in":"query","description":"Designation of the developer","required":true,"schema":{"type":"string"}},{"name":"about","in":"query","description":"Text content about developer","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Status should be one of the value of (\"pending\",\"approved\", \"onhold\", \"deleted\", \"rejected\")","required":true,"schema":{"type":"string"}},{"name":"rejectionReason","in":"query","description":"If admin wished to reject the registered developer this would be the reason text","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns developer object"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/admin/cancelOrder/":{"post":{"tags":["Admin"],"description":"Admin will cancel the order. Note - Order Cancel amount will always go to Client. If any disputes Admin will process the order to complete if he want to refund developer","operationId":"cancel order","parameters":[{"name":"userId","in":"query","description":"User id","required":true,"schema":{"type":"string"}},{"name":"orderId","in":"query","description":"Order id","required":true,"schema":{"type":"string"}},{"name":"refundAmount","in":"query","description":"Refundable amount","required":true,"schema":{"type":"number"}},{"name":"cancelType","in":"query","description":"Cancel type values are [\"fullRefund\", \"partialRefund\", \"noRefund\"]","required":true,"schema":{"type":"string"}},{"name":"reason","in":"query","description":"Reason for the cancel","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns success message"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/admin/getDevelopers/":{"post":{"tags":["Admin"],"description":"API to get all developers in paginated format","operationId":"Get developers","parameters":[{"name":"limit","in":"query","description":"Records limit","required":true,"schema":{"type":"integer"}},{"name":"page","in":"query","description":"Page index value","required":true,"schema":{"type":"integer"}},{"name":"name","in":"query","description":"Name of developer","required":true,"schema":{"type":"number"}},{"name":"email","in":"query","description":"Email address","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"One of the status value (\"pending\",\"approved\", \"onhold\", \"deleted\", \"rejected\")","required":true,"schema":{"type":"string"}},{"name":"userId","in":"query","description":"User id of developer","required":true,"schema":{"type":"string"}},{"name":"dateRange","in":"query","description":"Date range from and to","required":true,"schema":{"type":"array","items":{}}}],"responses":{"200":{"description":"Returns developer object with total records count"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/admin/getOrders/":{"post":{"tags":["Admin"],"description":"Gets list of orders with pagination","operationId":"Get orders","parameters":[{"name":"limit","in":"query","description":"Records limit","required":true,"schema":{"type":"integer"}},{"name":"page","in":"query","description":"Page index value","required":true,"schema":{"type":"integer"}},{"name":"status","in":"query","description":"One of the status value (\"pending\",\"approved\", \"onhold\", \"deleted\", \"rejected\")","required":true,"schema":{"type":"string"}},{"name":"userId","in":"query","description":"User id of developer","required":true,"schema":{"type":"string"}},{"name":"orderId","in":"query","description":"Order id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns the job object and total pages"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/admin/getTotalDeveloperCount/":{"post":{"tags":["Admin"],"description":"Gets list of orders count of all the developers","operationId":"Get dev count","parameters":[{"name":"userId","in":"query","description":"Admin id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns order count object of pending, approved, onhold, cancelled and deleted orders of all developers."},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/admin/getTotalOrderCount/":{"post":{"tags":["Admin"],"description":"Gets list of all jobs count such as meetings, requests, cancelled and completed orders","operationId":"Get orders count","parameters":[{"name":"userId","in":"query","description":"Admin id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns order count object of meetings, requests, cancelled and completed."},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/client/callExtension/checkOTP":{"post":{"tags":["Client"],"description":"To check and verify OTP of the given developer ID during call extension","operationId":"Call extension OTP verify","parameters":[{"name":"OTP","in":"query","description":"OTP received at mobile or email","required":true,"schema":{"type":"integer"}},{"name":"developerId","in":"query","description":"The _id field of the developer","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns success message if OTP is verified successful"},"400":{"description":"Returns wrong OTP error message if OTP is wrong"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/client/callExtension/checkSlotAvailability":{"post":{"tags":["Client"],"description":"This api provides if developer is available to extend the call or unavailable for the given date","operationId":"Check call extend availibitity","parameters":[{"name":"date","in":"query","description":"The date from which availibility is checked","required":true,"schema":{"type":"string"}},{"name":"slot","in":"query","description":"Slot of developer availibility","required":true,"schema":{"type":"string"}},{"name":"developerId","in":"query","description":"The _id field of the developer","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns slotAvailable to true if call is extendable else false if not available"},"400":{"description":"Returns error message if something is wrong"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/client/callExtension/extendSlot":{"post":{"tags":["Client"],"description":"This api is used to extend the call","operationId":"Extend call","parameters":[{"name":"job","in":"query","description":"The job param containes developer id to extend the call","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns newly placed order details of the call extend"},"400":{"description":"Returns error message if order not placed"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/client/callExtension/paymentFailure":{"post":{"tags":["Client"],"description":"This endpoint used to handle the payment failure for the call extension","operationId":"Call extend payment failure","parameters":[{"name":"jobId","in":"query","description":"Job _id field from the job collection","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"query","description":"Payment failed order id","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Payment status i.e paid/cancelled/expired etc recieved from the payment gateway","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns payment failed messaged"},"400":{"description":"Returns error message if any from payment gateway"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/client/callExtension/paymentSuccess":{"post":{"tags":["Client"],"description":"This is call extension payment success endpoint","operationId":"Call extend payment success","parameters":[{"name":"jobId","in":"query","description":"Job _id field from the job collection","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"query","description":"Payment success order id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns payment success messaged"},"400":{"description":"Returns error message if any from payment gateway"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/client/callExtension/stripe-extendSlot":{"post":{"tags":["Client"],"description":"This api is used to extend the ongoing call with stripe payment gateway and it will return a session which contains all the metadata like success failure url and payment reference details","operationId":"Stripe extend slot","parameters":[{"name":"job","in":"query","description":"This param contains the developer & client id and order id","required":true,"schema":{"type":"string"}},{"name":"failedUrl","in":"query","description":"This param is payment failure callback url","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns payment failed message"},"400":{"description":"Returns error message if OTP not generate"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/client/completeProject/[:id]":{"post":{"tags":["Client"],"description":"This api used to mark ongoing job to complete and updates the job to completed in the transaction collection","operationId":"Update job to completed","parameters":[{"name":"status","in":"query","description":"The status of the job","required":true,"schema":{"type":"string"}},{"name":"id","in":"query","description":"(NOTE - This is query parameter) _id field for the job collection","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns Job Completed successfully message with disableClientRevbtn to true"},"400":{"description":"Returns status given not valid error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/client/getEarningsForDashboard/[:id]":{"post":{"tags":["Client"],"description":"This api provides earnings of the client to show in his dashboard","operationId":"Get earings for dashboard","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) _id field of the client","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns all the transactions of client i.e spent, withdrawn and available"},"400":{"description":"Returns error if no transaction records"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/client/reviseProject/[:id]":{"post":{"tags":["Client"],"description":"This api is to ask for revision of the project delivery submitted by developer","operationId":"Ask revision of deliverables","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) _id field of the job collection","required":true,"schema":{"type":"string"}},{"name":"description","in":"query","description":"Description of the deliverables","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Status of the deliverables","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns revision asked succesfully message with disableClientRevbtn"},"400":{"description":"Returns message - Wait for Developer to submit the Deliverables"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/client/bookDeveloper":{"post":{"tags":["Client"],"description":"After payment success this api will be called to book a developer","operationId":"Book a developer","parameters":[{"name":"orderId","in":"query","description":"orderId of the payment","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns job object details after developer booked successfully"},"400":{"description":"Returns error if developer not booked"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/client/deleteAccount":{"post":{"tags":["Client"],"description":"This api is used to delete client account","operationId":"Delete client account","parameters":[{"name":"email","in":"query","description":"Email of the client","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns success message - Account Deleted"},"400":{"description":"Returns error if account not deleted"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/cancelOrder/[:id]":{"put":{"tags":["Common"],"description":"Used to cancel the order","operationId":"Cancel order","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) Order ID to of the job","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns success message of order cancel"},"400":{"description":"Returns error if order could not cancel"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/getChats/[:id]":{"get":{"tags":["Common"],"description":"This api returns the complete chat conversation of the corresponding user and it will exclude the blocked by user chat conversation","operationId":"Chat conversation","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) User ID to get chat conversation","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns array of chat conversation"},"400":{"description":"If any error while feching chat details"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/getDeveloperById/[:id]":{"get":{"tags":["Common"],"description":"This api provides specific developer by ID","operationId":"Get developer by Id","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) Developer ID to get details","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns object of developer details"},"400":{"description":"If any error while feching job details"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/getJob/[:id]":{"get":{"tags":["Common"],"description":"This api provides specific job by ID","operationId":"Get job by Id","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) Job ID field to get job details","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns object of job details"},"400":{"description":"If any error while feching job details"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/getJobs/[:id]":{"get":{"tags":["Common"],"description":"This api provides all the jobs of either developer or client based on the Id given","operationId":"Get all jobs by Id","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) Job ID field to get all job details","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns object of all job details"},"400":{"description":"If any error while feching job details"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/getNotification/[:id]":{"get":{"tags":["Common"],"description":"Gives all the notifications of specific user","operationId":"Get notofications by Id","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) User Id field to get all notifications","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns object of all notifications"},"400":{"description":"If any error while feching notifications"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/profile/[:id]":{"put":{"tags":["Common"],"description":"This api supports both GET and PUT methods. To get client or developer profile details just pass id parameter in GET method and to update profile pass all the params mentioned below using PUT method.","operationId":"Update profile","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) User Id field of given user","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","description":"Name is the keyword provided in search to filter","required":true,"schema":{"type":"string"}},{"name":"price","in":"query","description":"Price field","required":true,"schema":{"type":"string"}},{"name":"phone","in":"query","description":"Phone number of user","required":true,"schema":{"type":"string"}},{"name":"designation","in":"query","description":"Designation field","required":true,"schema":{"type":"string"}},{"name":"experience","in":"query","description":"Experience field","required":true,"schema":{"type":"string"}},{"name":"education","in":"query","description":"Education field","required":true,"schema":{"type":"string"}},{"name":"languages","in":"query","description":"Languages field","required":true,"schema":{"type":"string"}},{"name":"profilePic","in":"query","description":"ProfilePic field","required":true,"schema":{"type":"string"}},{"name":"about","in":"query","description":"About field","required":true,"schema":{"type":"string"}},{"name":"socialUrl","in":"query","description":"SocialUrl field","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Both methods return user object if success"},"400":{"description":"Returns error if profile id not found or if not updated"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/updateChat/[:id]":{"put":{"tags":["Common"],"description":"Updates the chat and sets read field as true","operationId":"Update chat read","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) Chat id field","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns chat updated message"},"400":{"description":"Error message if something goes wrong"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/updateNotification/[:id]":{"put":{"tags":["Common"],"description":"API used to mark the clicked notification as read for the unread notification","operationId":"Mark notification as read","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) Notification id field","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns success message"},"400":{"description":"Error message if something goes wrong"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/updateUser/[:id]":{"get":{"tags":["Common"],"description":"In this update user API we are just fetching client or developer details","operationId":"Get user details","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) user id field","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns user object"},"400":{"description":"Error message if invalid uid or data not found"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/beamServerSDK/":{"get":{"tags":["Common"],"description":"Checks if user authenticated then generates token and registers user in beams server","operationId":"Beams Token Generate","parameters":[{"name":"user_id","in":"query","description":"(NOTE - This is query parameter) ID of logged-in user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns beam generated token"},"400":{"description":"Returns error if beam registered user is different"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/beamServerSDK":{"post":{"tags":["Common"],"description":"Publishes push notification to specific user","operationId":"Beam specific notification","parameters":[{"name":"toUserID","in":"query","description":"User Id of specific user","required":true,"schema":{"type":"string"}},{"name":"title","in":"query","description":"Title of the notification","required":true,"schema":{"type":"string"}},{"name":"msg","in":"query","description":"Text message of the notification","required":true,"schema":{"type":"string"}},{"name":"deep_link","in":"query","description":"Deep_link url to redirect after click","required":true,"schema":{"type":"string"}},{"name":"icon","in":"query","description":"Icon url to show image","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"If all the params are valid then it will send push notification to specific user"},"400":{"description":"Returns error if params invalid"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/blockUser":{"post":{"tags":["Common"],"description":"This endpoint used to block or unblock a developer or client from the chat section","operationId":"Block user","parameters":[{"name":"developerUID","in":"query","description":"Developer user id","required":true,"schema":{"type":"string"}},{"name":"clientUID","in":"query","description":"User Id of the client","required":true,"schema":{"type":"string"}},{"name":"userType","in":"query","description":"User type either client or developer","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Return if blocked or unblocked message with user object"},"400":{"description":"Returns error if params invalid"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/chat":{"post":{"tags":["Common"],"description":"This api adds the new text messages in the chat collection","operationId":"New chat text","parameters":[{"name":"fromId","in":"query","description":"From Id of the user","required":true,"schema":{"type":"string"}},{"name":"toId","in":"query","description":"To Id of the client","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Return success message"},"400":{"description":"Returns error if text not stored"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/emailOTPCheck":{"post":{"tags":["Common"],"description":"This api checks the given OTP if valid","operationId":"Email OTP check","parameters":[{"name":"email","in":"query","description":"Email id of the user","required":true,"schema":{"type":"string"}},{"name":"otp","in":"query","description":"OTP recieved on the email","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Return success message if OTP is valid"},"400":{"description":"Returns error if OTP invalid"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/feedback":{"post":{"tags":["Common"],"description":"This api is used to provide the feedback","operationId":"Feedback","parameters":[{"name":"text","in":"query","description":"Text message","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Return success message if feedback saved"},"400":{"description":"Returns error if not saved"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/forgotPassword":{"post":{"tags":["Common"],"description":"This api is used for forgot password","operationId":"Forgot password","parameters":[{"name":"email","in":"query","description":"Email id of the user","required":true,"schema":{"type":"string"}},{"name":"new_password","in":"query","description":"New password to store","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Return success message if password updated"},"400":{"description":"Returns error if not updated"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/getCalendarInvite":{"post":{"tags":["Common"],"description":"This api is used for sending calendar invite to user Email address","operationId":"Calendar Invite","parameters":[{"name":"jobId","in":"query","description":"Job id of the job","required":true,"schema":{"type":"string"}},{"name":"cookie","in":"query","description":"Cookie from the user browser","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Return success message if calendat invite link sent to mail"},"400":{"description":"Returns error if not sent"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/getCities":{"post":{"tags":["Common"],"description":"This api gets city names and if you use optional keyword param then it returns based on the key","operationId":"City names","parameters":[{"name":"keyword","in":"query","description":"Optional keyword of city name","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Return array of city names"},"400":{"description":"Returns error if any exception"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/getSkills":{"post":{"tags":["Common"],"description":"This api gets skill names","operationId":"Skill names","parameters":[{"name":"keyword","in":"query","description":"Optional keyword of skill name","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Return array of skill names"},"400":{"description":"Returns error if any exception"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/sendNotification":{"post":{"tags":["Common"],"description":"This is a common send notification to all functionaity in the app using this endpoint we send Email, tray notification and device push notifications using pusher package","operationId":"Common notification to all","parameters":[{"name":"title","in":"query","description":"Title of the notification","required":true,"schema":{"type":"string"}},{"name":"uid","in":"query","description":"User id of the client or developer","required":true,"schema":{"type":"string"}},{"name":"subtitle","in":"query","description":"Sub title of the notification","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","description":"Type of the notification like register, passwordChage etc","required":true,"schema":{"type":"string"}},{"name":"paymentStatus","in":"query","description":"If this push is for payment related then pass this param","required":false,"schema":{"type":"string"}},{"name":"profilePic","in":"query","description":"ProfilePic is the optional param","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns notification sent message if success"},"400":{"description":"Returns error if any wrong params passed"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/sendOtpToEmail":{"post":{"tags":["Common"],"description":"This is used to  generate and send OTP to email for the 2FA","operationId":"2FA OTP to Email","parameters":[{"name":"email","in":"query","description":"Email address of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns success message"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/updateActivity":{"post":{"tags":["Common"],"description":"This API used to online or offilne of the logged-in user","operationId":"User online offline","parameters":[{"name":"id","in":"query","description":"User id of the logged in user","required":true,"schema":{"type":"string"}},{"name":"isHidden","in":"query","description":"If hidden status of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns user activity object"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/withdraw":{"post":{"tags":["Common"],"description":"This API is used to submit the withdrawal request of amount","operationId":"Withdrawal request","parameters":[{"name":"uid","in":"query","description":"User id of the logged in user","required":true,"schema":{"type":"string"}},{"name":"price","in":"query","description":"Price of withdrawal","required":true,"schema":{"type":"string"}},{"name":"ifscCode","in":"query","description":"Ifsc code of the bank","required":true,"schema":{"type":"string"}},{"name":"accountName","in":"query","description":"Account name of bank holder","required":true,"schema":{"type":"string"}},{"name":"bank","in":"query","description":"Name of bank","required":true,"schema":{"type":"string"}},{"name":"branch","in":"query","description":"Bank branch name","required":true,"schema":{"type":"string"}},{"name":"accountNumber","in":"query","description":"Bank account number of the user","required":true,"schema":{"type":"string"}},{"name":"email","in":"query","description":"Email of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns all developers"},"400":{"description":"Returns error message if not updates"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/common/updateCookies":{"post":{"tags":["Common"],"description":"This API is used to update loggedin user cookie consent and returns user object","operationId":"Update cookie consent","parameters":[{"name":"userId","in":"query","description":"User id of the logged in user","required":true,"schema":{"type":"string"}},{"name":"userType","in":"query","description":"User type client/developer","required":true,"schema":{"type":"string"}},{"name":"cookiesConsent","in":"query","description":"Cookies consent, some policy","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns user object"},"400":{"description":"Returns error message if cookies not update"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/developer/byId/[:id]":{"get":{"tags":["Developer"],"description":"This API provides developer details by id","operationId":"Get developer by id","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) Developer id of the logged in user","required":true,"schema":{"type":"array","items":{}}}],"responses":{"200":{"description":"Returns object of developer"},"400":{"description":"Returns error message if wrong user id"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/developer/deliverProject/create/[:id]":{"post":{"tags":["Developer"],"description":"By using this api developer creates the delivarables of the job","operationId":"Create project delivery","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) Developer id of the logged in user","required":true,"schema":{"type":"string"}},{"name":"files","in":"query","description":"This is optional param if developer uploads any files","required":false,"schema":{"type":"array","items":{}}},{"name":"description","in":"query","description":"Details about the delivery","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns deliver success message with disableDevSubmitbtn status"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/developer/deliverProject/update/[:id]":{"put":{"tags":["Developer"],"description":"By using this api developer can revise the delivarables of the job","operationId":"Revise project delivery","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) Developer id of the logged in user","required":true,"schema":{"type":"string"}},{"name":"files","in":"query","description":"This is optional param if developer uploads any files","required":false,"schema":{"type":"array","items":{}}},{"name":"description","in":"query","description":"Details about the delivery","required":false,"schema":{"type":"string"}},{"name":"deletedFiles","in":"query","description":"Deleted files for the revise of delivery","required":false,"schema":{"type":"array","items":{}}},{"name":"status","in":"query","description":"Status of the delivery like pending or completed","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns deliver success message with disableDevSubmitbtn status and completed status"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/developer/getEarnings/[:id]":{"get":{"tags":["Developer"],"description":"This api provides all the transactions, earnings, withdraw and estimates of the developer","operationId":"Get developer earnings","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) Developer id of the logged in user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns estimates, transactions, earnings and withdraw details"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/developer/updateJobStatus/[:id]":{"put":{"tags":["Developer"],"description":"This endpoint updates the job status of the developer. Status of accepted or rejected which goes into meetings/cancelled","operationId":"Job status update","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) Developer id of the logged in user","required":true,"schema":{"type":"array","items":{}}},{"name":"status","in":"query","description":"(NOTE - This is query parameter) Status of meetings or cancelled","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns updated job object"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/developer/addReviews/":{"post":{"tags":["Developer"],"description":"This api used to give review for the developer by the logged in client. And cookies needs to send from the browser cookie to get the client id","operationId":"Add review","parameters":[{"name":"developer_id","in":"query","description":"Developer id to review","required":true,"schema":{"type":"string"}},{"name":"review","in":"query","description":"Text content of the review","required":true,"schema":{"type":"string"}},{"name":"rating","in":"query","description":"Ratings for the developer","required":true,"schema":{"type":"string"}},{"name":"job_id","in":"query","description":"Job id","required":true,"schema":{"type":"string"}},{"name":"profile_pic","in":"query","description":"Profile pic url of the developer","required":true,"schema":{"type":"string"}},{"name":"cookie","in":"query","description":"Cookie stored in the browser needs to pass with the request","required":true,"schema":{"type":"object"}}],"responses":{"200":{"description":"Returns review added message"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/developer/deleteAccount/":{"post":{"tags":["Developer"],"description":"Used to delete developer account","operationId":"Delete developer account","parameters":[{"name":"email","in":"query","description":"Developer email address","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns account deleted message"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/developer/deleteAvailibility/":{"post":{"tags":["Developer"],"description":"Used to delete the created slot of the developer","operationId":"Delete slot","parameters":[{"name":"date","in":"query","description":"Date of the slot","required":true,"schema":{"type":"string"}},{"name":"slot","in":"query","description":"Created job slot","required":true,"schema":{"type":"string"}},{"name":"cookie","in":"query","description":"Cookie stored in the browser needs to pass with the request from this we get developer id","required":true,"schema":{"type":"object"}}],"responses":{"200":{"description":"Returns object of the developer account"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/developer/getDevelopers":{"post":{"tags":["Developer"],"description":"This endpoint used to get list of available developers. By default it returns with a limit of 10 records. For pagination and search filters need to pass below mentioned optional params in a DATA object. If client is logged-in then we must pass the userID param to exclude the blocked developers by the loggedin client.","operationId":"Get Developers List","parameters":[{"name":"token","in":"header","description":"token of logged-in user","required":true,"style":"simple","explode":false,"schema":{"type":"string","example":"484513554-541365914-46104621-58451657"}},{"name":"userID","in":"query","description":"If client is loggedin, userID is used to exclude blocked developers. If client not logged-in then this parameter is optional. This param we can pass with or without DATA object.","required":false,"style":"form","explode":false,"schema":{"type":"string","example":"63a15c899e7a64467a78a60c"}},{"name":"page","in":"query","description":"This is for pagination if we do not pass this page param then only starting 10 records will be fetched. This param has to pass in DATA object","required":false,"style":"form","explode":false,"schema":{"type":"integer","example":10}},{"name":"totalRecords","in":"query","description":"This is for pagination to set limit of records. This param has to pass in DATA object","required":false,"style":"form","explode":false,"schema":{"type":"integer","example":20}},{"name":"designation","in":"query","description":"This is for search filter to get only selected designation developers. This param has to pass in DATA object","required":false,"schema":{"type":"array","items":{},"example":["Software developer"]}},{"name":"location","in":"query","description":"This is for search filter to get only selected location developers. This param has to pass in DATA object","required":false,"schema":{"type":"array","items":{},"example":["India","US"]}},{"name":"skill","in":"query","description":"This is for search filter to get only selected skilled developers. This param has to pass in DATA object","required":false,"schema":{"type":"array","items":{},"example":["JavaSript","C++"]}},{"name":"yearsOfExperience","in":"query","description":"This is for search filter to get only from and to range selected years of experienced developers. This param has to pass in DATA object","required":false,"schema":{"type":"array","items":{},"example":[1,15]}},{"name":"price","in":"query","description":"This is for search filter to get only range selected price developers. This param has to pass in DATA object","required":false,"schema":{"type":"integer","example":20}},{"name":"name","in":"query","description":"This is for search filter to search entered keyword developer name. This param has to pass in DATA object","required":false,"schema":{"type":"string","example":"John"}}],"responses":{"200":{"description":"User is recognized, token is sent and returns list of available developers","content":{"application/json":{"schema":{"$ref":"#/components/schemas/getDevelopers"}}}},"400":{"description":"Error 400","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"422":{"description":"Error 422 - If request method is not appropriate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/422"}}}}}}},"/developer/onBoarding/":{"put":{"tags":["Developer"],"description":"This api is used to update the about field of the developer","operationId":"Developer on boarding","parameters":[{"name":"userId","in":"query","description":"Developer id","required":true,"schema":{"type":"string"}},{"name":"about","in":"query","description":"Text content about developer","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns developer object"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/developer/setAvailiblity/":{"post":{"tags":["Developer"],"description":"This endpoint sets the availiblity date and time slots of the developer","operationId":"Set slot availiblity","parameters":[{"name":"availiblity","in":"query","description":"Availiblity slot of the developer","required":true,"schema":{"type":"array","items":{}}},{"name":"id","in":"query","description":"User Id of the developer","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns developer object with type as developer"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/payment":{"post":{"tags":["Root API"],"description":"This is a payment success callbacl url once the payment is successful order id will be stored if the payment is success","operationId":"payment success","parameters":[{"name":"clientId","in":"query","description":"Client id field","required":true,"schema":{"type":"string","example":"ertf7854ert845de"}},{"name":"developerId","in":"query","description":"Developer id field","required":true,"schema":{"type":"string","example":"ertf7854ert845de"}},{"name":"price","in":"query","description":"Payment price","required":true,"schema":{"type":"string"}},{"name":"start_date","in":"query","description":"Payment start date","required":true,"schema":{"type":"string"}},{"name":"end_date","in":"query","description":"Payment end date","required":true,"schema":{"type":"string"}},{"name":"time","in":"query","description":"Payment time","required":true,"schema":{"type":"string"}},{"name":"job_description","in":"query","description":"Details of job description","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns the order details"},"400":{"description":"Error 400 message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/socket_connection":{"get":{"tags":["Root API"],"description":"This endpoint is a socket connection to create and join rooms for the chat section and for online offline presence of user.","operationId":"socket connection","responses":{"200":{"description":"Returns socket connection"}}}},"/updatePassword":{"post":{"tags":["Root API"],"description":"This api updates the new password","operationId":"update password","parameters":[{"name":"email","in":"query","description":"Email address field","required":true,"schema":{"type":"string","example":"john@gmail.com"}},{"name":"password","in":"query","description":"Old password of the user","required":true,"schema":{"type":"string","example":"123@124"}},{"name":"new_password","in":"query","description":"New password to change","required":true,"schema":{"type":"string","example":"123@12456"}}],"responses":{"200":{"description":"Returns success message"},"400":{"description":"Error 400 message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/updatePayment":{"post":{"tags":["Root API"],"description":"This api updates the payment status for the given order id","operationId":"update payment status","parameters":[{"name":"orderId","in":"query","description":"Order id field","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Status of the payment","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns payment status success message"},"400":{"description":"400 error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/getAuthDetails/[:id]":{"get":{"tags":["Root API"],"description":"This api is used to get the user phone, two factor method and user type","operationId":"Get auth details","parameters":[{"name":"id","in":"query","description":"(NOTE - This is query parameter) User email address has to pass in this query param","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns user object of phone, two factor method and type of user"},"400":{"description":"Returns error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/video/createParticipants":{"post":{"tags":["Video"],"description":"This api creates the 1-on-1 video call by connecting to the dyte cluster api and If user joing with new device will kickout of the old device from meeting","operationId":"1-on-1 video call","parameters":[{"name":"jobId","in":"query","description":"Job id of the user","required":true,"schema":{"type":"string"}},{"name":"userId","in":"query","description":"User id of the developer or client","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns object of participants with auth token id"},"400":{"description":"400 error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/video/getMeetingStatus":{"post":{"tags":["Video"],"description":"This api gets the meeting status","operationId":"Meeting status","parameters":[{"name":"meetingId","in":"query","description":"Meeting id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns success message"},"400":{"description":"400 error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/video/leaveMeeting":{"post":{"tags":["Video"],"description":"This api deletes the participants by connecting to the dyte cluster api","operationId":"api to leave meeting","parameters":[{"name":"p_id","in":"query","description":"Participant id","required":true,"schema":{"type":"string"}},{"name":"meetingId","in":"query","description":"Meeting id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns success message"},"400":{"description":"400 error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/video/updateMeetingStatus":{"post":{"tags":["Video"],"description":"This api used to Update the status to kick all participants if client decided to not extend the call.","operationId":"update meeting status","parameters":[{"name":"status","in":"query","description":"Status of INACTIVE","required":true,"schema":{"type":"string"}},{"name":"meetingId","in":"query","description":"Meeting id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns success message"},"400":{"description":"400 error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/video/kickAllParticipants":{"post":{"tags":["Video"],"description":"This api kicks all the participants from the video call","operationId":"remove all participants","parameters":[{"name":"meetingId","in":"cookie","description":"Meeting id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns success message"},"400":{"description":"400 error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/video/kickParticipants":{"post":{"tags":["Video"],"description":"This api is used to kick specific participant from the video call","operationId":"remove one participant","parameters":[{"name":"jobId","in":"query","description":"job Id of the user","required":true,"schema":{"type":"string"}},{"name":"userId","in":"query","description":"user id of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns success message"},"400":{"description":"400 error message"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/payment/checkout_sessions/[:id]":{"post":{"tags":["Payment"],"description":"This api provides the stripe payment session id","operationId":"paymnet session id","parameters":[{"name":"id","in":"query","description":"Stripe session id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns checkout session id"},"400":{"description":"400 if incorrect session id"},"422":{"description":"Error 422 - If request method is not appropriate"}}}},"/payment/checkout_sessions/index":{"post":{"tags":["Payment"],"description":"Used for the stripe payment","operationId":"stripe paymnet","parameters":[{"name":"clientId","in":"query","description":"client Id","required":true,"schema":{"type":"string"}},{"name":"developerId","in":"query","description":"developer Id","required":true,"schema":{"type":"string"}},{"name":"price","in":"query","description":"price","required":true,"schema":{"type":"string"}},{"name":"start_date","in":"query","description":"start date of payment","required":true,"schema":{"type":"string"}},{"name":"end_date","in":"query","description":"end date of payment","required":true,"schema":{"type":"string"}},{"name":"time","in":"query","description":"time","required":true,"schema":{"type":"string"}},{"name":"job_description","in":"query","description":"description of job","required":true,"schema":{"type":"string"}},{"name":"dev","in":"query","description":"developer details","required":true,"schema":{"type":"string"}},{"name":"failedUrl","in":"query","description":"payment failed url","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns stripe payment session"},"400":{"description":"400 if payment fails"},"422":{"description":"Error 422 - If request method is not appropriate"}}}}},"components":{"schemas":{"400":{"type":"object","properties":{"error":{"type":"string","example":"Bad-Request -- Invalid body in your request"}},"description":"Schema for 400"},"422":{"type":"object","properties":{"error":{"type":"string","example":"req_method_not_supported"}},"description":"Schema for 422"},"Login":{"type":"object","properties":{"token":{"type":"string","example":"484513554-541365914-46104621-58451657"}},"description":"Schema for login"},"getDevelopers":{"type":"object","properties":{"authId":{"type":"string","example":"63a15c899e7a64467a78a60c"},"name":{"type":"string","example":"john miller"},"email":{"type":"string","example":"johnmiller@yahoo.com"}},"description":"Schema for developers (mentioned only 3 fileds)"}},"securitySchemes":{"bearerAuth":{"type":"apiKey","name":"X-Auth-Token","in":"header"}}}}