{"openapi":"3.0.3","info":{"title":"Tendering API","version":"1.0.0","description":"API documentation for the Tendering application"},"paths":{"/bid-documents/":{"get":{"operationId":"bid_documents_list","tags":["bid-documents"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BidDocument"}}}},"description":""}}},"post":{"operationId":"bid_documents_create","tags":["bid-documents"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidDocument"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/BidDocument"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/BidDocument"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidDocument"}}},"description":""}}}},"/bid-documents/{id}/":{"get":{"operationId":"bid_documents_retrieve","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this bid document.","required":true}],"tags":["bid-documents"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidDocument"}}},"description":""}}},"put":{"operationId":"bid_documents_update","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this bid document.","required":true}],"tags":["bid-documents"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidDocument"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/BidDocument"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/BidDocument"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidDocument"}}},"description":""}}},"patch":{"operationId":"bid_documents_partial_update","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this bid document.","required":true}],"tags":["bid-documents"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchedBidDocument"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PatchedBidDocument"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PatchedBidDocument"}}}},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidDocument"}}},"description":""}}},"delete":{"operationId":"bid_documents_destroy","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this bid document.","required":true}],"tags":["bid-documents"],"security":[{"jwtAuth":[]}],"responses":{"204":{"description":"No response body"}}}},"/bids/":{"get":{"operationId":"bids_list","parameters":[{"name":"search","required":false,"in":"query","description":"A search term.","schema":{"type":"string"}}],"tags":["bids"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Bid"}}}},"description":""}}},"post":{"operationId":"bids_create","tags":["bids"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bid"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Bid"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Bid"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bid"}}},"description":""}}}},"/bids/{bid_id}/accept/":{"post":{"operationId":"bids_accept_create","parameters":[{"in":"path","name":"bid_id","schema":{"type":"integer"},"required":true}],"tags":["bids"],"security":[{"jwtAuth":[]}],"responses":{"200":{"description":"No response body"}}}},"/bids/{bid_id}/reject/":{"post":{"operationId":"bids_reject_create","parameters":[{"in":"path","name":"bid_id","schema":{"type":"integer"},"required":true}],"tags":["bids"],"security":[{"jwtAuth":[]}],"responses":{"200":{"description":"No response body"}}}},"/bids/{id}/":{"get":{"operationId":"bids_retrieve","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this bid.","required":true}],"tags":["bids"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bid"}}},"description":""}}},"put":{"operationId":"bids_update","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this bid.","required":true}],"tags":["bids"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bid"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Bid"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Bid"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bid"}}},"description":""}}},"patch":{"operationId":"bids_partial_update","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this bid.","required":true}],"tags":["bids"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchedBid"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PatchedBid"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PatchedBid"}}}},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bid"}}},"description":""}}},"delete":{"operationId":"bids_destroy","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this bid.","required":true}],"tags":["bids"],"security":[{"jwtAuth":[]}],"responses":{"204":{"description":"No response body"}}}},"/categories/":{"get":{"operationId":"categories_list","tags":["categories"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Category"}}}},"description":""}}}},"/categories/{id}/":{"get":{"operationId":"categories_retrieve","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this category.","required":true}],"tags":["categories"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Category"}}},"description":""}}}},"/change-password/":{"post":{"operationId":"change_password_create","tags":["change-password"],"security":[{"jwtAuth":[]},{}],"responses":{"200":{"description":"No response body"}}}},"/check-password/":{"post":{"operationId":"check_password_create","tags":["check-password"],"security":[{"jwtAuth":[]}],"responses":{"200":{"description":"No response body"}}}},"/currencies/":{"get":{"operationId":"currencies_list","tags":["currencies"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Currency"}}}},"description":""}}}},"/currencies/{id}/":{"get":{"operationId":"currencies_retrieve","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this currency.","required":true}],"tags":["currencies"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Currency"}}},"description":""}}}},"/locations/":{"get":{"operationId":"locations_list","tags":["locations"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Location"}}}},"description":""}}}},"/locations/{id}/":{"get":{"operationId":"locations_retrieve","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this location.","required":true}],"tags":["locations"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Location"}}},"description":""}}}},"/log-out/":{"post":{"operationId":"log_out_create","tags":["log-out"],"security":[{"jwtAuth":[]}],"responses":{"200":{"description":"No response body"}}}},"/login/":{"post":{"operationId":"login_create","description":"Takes a set of user credentials and returns an access and refresh JSON web\ntoken pair to prove the authentication of those credentials.","tags":["login"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTokenObtainPair"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/EmailTokenObtainPair"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/EmailTokenObtainPair"}}},"required":true},"security":[{}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTokenObtainPair"}}},"description":""}}}},"/notifications/":{"get":{"operationId":"notifications_list","tags":["notifications"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Notification"}}}},"description":""}}},"post":{"operationId":"notifications_create","tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Notification"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Notification"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}},"description":""}}}},"/notifications/{id}/":{"get":{"operationId":"notifications_retrieve","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this notification.","required":true}],"tags":["notifications"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}},"description":""}}},"put":{"operationId":"notifications_update","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this notification.","required":true}],"tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Notification"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Notification"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}},"description":""}}},"patch":{"operationId":"notifications_partial_update","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this notification.","required":true}],"tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchedNotification"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PatchedNotification"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PatchedNotification"}}}},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}},"description":""}}},"delete":{"operationId":"notifications_destroy","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this notification.","required":true}],"tags":["notifications"],"security":[{"jwtAuth":[]}],"responses":{"204":{"description":"No response body"}}}},"/refresh/":{"post":{"operationId":"refresh_create","description":"Takes a refresh type JSON web token and returns an access type JSON web\ntoken if the refresh token is valid.","tags":["refresh"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRefresh"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/TokenRefresh"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/TokenRefresh"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRefresh"}}},"description":""}}}},"/saved-tenders/":{"get":{"operationId":"saved_tenders_list","tags":["saved-tenders"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SavedTender"}}}},"description":""}}},"post":{"operationId":"saved_tenders_create","tags":["saved-tenders"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedTender"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/SavedTender"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/SavedTender"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedTender"}}},"description":""}}}},"/saved-tenders/{id}/":{"get":{"operationId":"saved_tenders_retrieve","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this saved tender.","required":true}],"tags":["saved-tenders"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedTender"}}},"description":""}}},"put":{"operationId":"saved_tenders_update","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this saved tender.","required":true}],"tags":["saved-tenders"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedTender"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/SavedTender"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/SavedTender"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedTender"}}},"description":""}}},"patch":{"operationId":"saved_tenders_partial_update","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this saved tender.","required":true}],"tags":["saved-tenders"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchedSavedTender"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PatchedSavedTender"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PatchedSavedTender"}}}},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedTender"}}},"description":""}}},"delete":{"operationId":"saved_tenders_destroy","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this saved tender.","required":true}],"tags":["saved-tenders"],"security":[{"jwtAuth":[]}],"responses":{"204":{"description":"No response body"}}}},"/send-otp/":{"post":{"operationId":"send_otp_create","tags":["send-otp"],"security":[{"jwtAuth":[]},{}],"responses":{"200":{"description":"No response body"}}}},"/sign-up/":{"post":{"operationId":"sign_up_create","tags":["sign-up"],"security":[{}],"responses":{"200":{"description":"No response body"}}}},"/statuses/":{"get":{"operationId":"statuses_list","tags":["statuses"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Status"}}}},"description":""}}}},"/statuses/{id}/":{"get":{"operationId":"statuses_retrieve","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this status.","required":true}],"tags":["statuses"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}},"description":""}}}},"/tender-attachments/":{"get":{"operationId":"tender_attachments_list","tags":["tender-attachments"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TenderAttachment"}}}},"description":""}}},"post":{"operationId":"tender_attachments_create","tags":["tender-attachments"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenderAttachment"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/TenderAttachment"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/TenderAttachment"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenderAttachment"}}},"description":""}}}},"/tender-attachments/{id}/":{"get":{"operationId":"tender_attachments_retrieve","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this tender attachment.","required":true}],"tags":["tender-attachments"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenderAttachment"}}},"description":""}}},"put":{"operationId":"tender_attachments_update","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this tender attachment.","required":true}],"tags":["tender-attachments"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenderAttachment"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/TenderAttachment"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/TenderAttachment"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenderAttachment"}}},"description":""}}},"patch":{"operationId":"tender_attachments_partial_update","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this tender attachment.","required":true}],"tags":["tender-attachments"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchedTenderAttachment"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PatchedTenderAttachment"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PatchedTenderAttachment"}}}},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenderAttachment"}}},"description":""}}},"delete":{"operationId":"tender_attachments_destroy","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this tender attachment.","required":true}],"tags":["tender-attachments"],"security":[{"jwtAuth":[]}],"responses":{"204":{"description":"No response body"}}}},"/tenders/":{"get":{"operationId":"tenders_list","parameters":[{"in":"query","name":"category__name","schema":{"type":"string"}},{"in":"query","name":"category__name__icontains","schema":{"type":"string"}},{"in":"query","name":"location__city","schema":{"type":"string"}},{"in":"query","name":"location__city__icontains","schema":{"type":"string"}},{"in":"query","name":"location__state","schema":{"type":"string"}},{"in":"query","name":"location__state__icontains","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","description":"A search term.","schema":{"type":"string"}}],"tags":["tenders"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Tender"}}}},"description":""}}},"post":{"operationId":"tenders_create","tags":["tenders"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tender"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Tender"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Tender"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tender"}}},"description":""}}}},"/tenders/{id}/":{"get":{"operationId":"tenders_retrieve","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this tender.","required":true}],"tags":["tenders"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tender"}}},"description":""}}},"put":{"operationId":"tenders_update","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this tender.","required":true}],"tags":["tenders"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tender"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Tender"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Tender"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tender"}}},"description":""}}},"patch":{"operationId":"tenders_partial_update","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this tender.","required":true}],"tags":["tenders"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchedTender"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PatchedTender"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PatchedTender"}}}},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tender"}}},"description":""}}},"delete":{"operationId":"tenders_destroy","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this tender.","required":true}],"tags":["tenders"],"security":[{"jwtAuth":[]}],"responses":{"204":{"description":"No response body"}}}},"/tenders/{id}/approve/":{"post":{"operationId":"tenders_approve_create","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this tender.","required":true}],"tags":["tenders"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tender"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Tender"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Tender"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tender"}}},"description":""}}}},"/tenders/{tender_id}/pay/":{"post":{"operationId":"tenders_pay_create","parameters":[{"in":"path","name":"tender_id","schema":{"type":"integer"},"required":true}],"tags":["tenders"],"security":[{"jwtAuth":[]}],"responses":{"200":{"description":"No response body"}}}},"/tenders/my-tenders/":{"get":{"operationId":"tenders_my_tenders_retrieve","tags":["tenders"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tender"}}},"description":""}}}},"/users/":{"get":{"operationId":"users_list","parameters":[{"name":"search","required":false,"in":"query","description":"A search term.","schema":{"type":"string"}}],"tags":["users"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}},"description":""}}},"post":{"operationId":"users_create","tags":["users"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/User"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/User"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""}}}},"/users/{id}/":{"get":{"operationId":"users_retrieve","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this user.","required":true}],"tags":["users"],"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""}}},"put":{"operationId":"users_update","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this user.","required":true}],"tags":["users"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/User"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/User"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""}}},"patch":{"operationId":"users_partial_update","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this user.","required":true}],"tags":["users"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchedUser"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PatchedUser"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PatchedUser"}}}},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""}}},"delete":{"operationId":"users_destroy","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this user.","required":true}],"tags":["users"],"security":[{"jwtAuth":[]}],"responses":{"204":{"description":"No response body"}}}},"/users/{id}/verify/":{"post":{"operationId":"users_verify_create","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this user.","required":true}],"tags":["users"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/User"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/User"}}},"required":true},"security":[{"jwtAuth":[]}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""}}}},"/verify-otp/":{"post":{"operationId":"verify_otp_create","tags":["verify-otp"],"security":[{"jwtAuth":[]},{}],"responses":{"200":{"description":"No response body"}}}}},"components":{"schemas":{"Bid":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"user_name":{"type":"string","readOnly":true},"status_name":{"type":"string","readOnly":true},"tender_title":{"type":"string","readOnly":true},"tender_owner_username":{"type":"string","readOnly":true},"documents":{"type":"array","items":{"$ref":"#/components/schemas/BidDocument"},"readOnly":true},"creation_date":{"type":"string","format":"date-time","readOnly":true},"title":{"type":"string","maxLength":255},"proposal":{"type":"string"},"total_price":{"type":"string","format":"decimal","pattern":"^-?\\d{0,8}(?:\\.\\d{0,2})?$"},"execution_plan":{"type":"string","nullable":true},"deliverables":{"type":"string","nullable":true},"estimated_duration":{"type":"string","nullable":true,"maxLength":100},"company_name":{"type":"string","nullable":true,"maxLength":255},"contact_person":{"type":"string","nullable":true,"maxLength":255},"contact_email":{"nullable":true,"oneOf":[{"type":"string","format":"email","maxLength":254},{"type":"string","maxLength":0}]},"contact_phone":{"type":"string","nullable":true,"maxLength":20},"user":{"type":"integer","readOnly":true},"tender":{"type":"integer"},"status":{"type":"integer","readOnly":true}},"required":["creation_date","documents","id","proposal","status","status_name","tender","tender_owner_username","tender_title","title","total_price","user","user_name"]},"BidDocument":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"file":{"type":"string","format":"uri"},"description":{"type":"string","nullable":true},"size":{"type":"integer","maximum":2147483647,"minimum":0},"content_type":{"type":"string","maxLength":100},"bid":{"type":"integer"}},"required":["bid","content_type","file","id","size"]},"Category":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":255},"description":{"type":"string"}},"required":["description","id","name"]},"Currency":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"code":{"type":"string","maxLength":10},"name":{"type":"string","maxLength":50}},"required":["code","id","name"]},"EmailTokenObtainPair":{"type":"object","properties":{"email":{"type":"string","writeOnly":true},"password":{"type":"string","writeOnly":true}},"required":["email","password"]},"Location":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"street":{"type":"string","title":"Street name","maxLength":100},"city":{"type":"string","title":"City name","maxLength":40},"state":{"type":"string","title":"State name","maxLength":40}},"required":["city","id","state","street"]},"Notification":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"notification_type":{"$ref":"#/components/schemas/NotificationTypeEnum"},"message":{"type":"string"},"is_read":{"type":"boolean"},"created_at":{"type":"string","format":"date-time","readOnly":true},"tender_title":{"type":"string","maxLength":255},"bid_title":{"type":"string","maxLength":255},"recipient":{"type":"integer"},"sender":{"type":"integer","nullable":true}},"required":["created_at","id","message","notification_type","recipient"]},"NotificationTypeEnum":{"enum":["new_bid","bid_accepted","bid_rejected","tender_approved"],"type":"string","description":"* `new_bid` - New Bid\n* `bid_accepted` - Bid Accepted\n* `bid_rejected` - Bid Rejected\n* `tender_approved` - Tender Approved"},"PatchedBid":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"user_name":{"type":"string","readOnly":true},"status_name":{"type":"string","readOnly":true},"tender_title":{"type":"string","readOnly":true},"tender_owner_username":{"type":"string","readOnly":true},"documents":{"type":"array","items":{"$ref":"#/components/schemas/BidDocument"},"readOnly":true},"creation_date":{"type":"string","format":"date-time","readOnly":true},"title":{"type":"string","maxLength":255},"proposal":{"type":"string"},"total_price":{"type":"string","format":"decimal","pattern":"^-?\\d{0,8}(?:\\.\\d{0,2})?$"},"execution_plan":{"type":"string","nullable":true},"deliverables":{"type":"string","nullable":true},"estimated_duration":{"type":"string","nullable":true,"maxLength":100},"company_name":{"type":"string","nullable":true,"maxLength":255},"contact_person":{"type":"string","nullable":true,"maxLength":255},"contact_email":{"nullable":true,"oneOf":[{"type":"string","format":"email","maxLength":254},{"type":"string","maxLength":0}]},"contact_phone":{"type":"string","nullable":true,"maxLength":20},"user":{"type":"integer","readOnly":true},"tender":{"type":"integer"},"status":{"type":"integer","readOnly":true}}},"PatchedBidDocument":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"file":{"type":"string","format":"uri"},"description":{"type":"string","nullable":true},"size":{"type":"integer","maximum":2147483647,"minimum":0},"content_type":{"type":"string","maxLength":100},"bid":{"type":"integer"}}},"PatchedNotification":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"notification_type":{"$ref":"#/components/schemas/NotificationTypeEnum"},"message":{"type":"string"},"is_read":{"type":"boolean"},"created_at":{"type":"string","format":"date-time","readOnly":true},"tender_title":{"type":"string","maxLength":255},"bid_title":{"type":"string","maxLength":255},"recipient":{"type":"integer"},"sender":{"type":"integer","nullable":true}}},"PatchedSavedTender":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"tender":{"type":"integer"}}},"PatchedTender":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/TenderAttachment"},"readOnly":true},"bids":{"type":"array","items":{"$ref":"#/components/schemas/Bid"},"readOnly":true},"is_saved":{"type":"string","readOnly":true},"title":{"type":"string","maxLength":255},"description":{"type":"string"},"is_approved":{"type":"boolean","readOnly":true},"budget_min":{"type":"string","format":"decimal","pattern":"^-?\\d{0,8}(?:\\.\\d{0,2})?$"},"budget_max":{"type":"string","format":"decimal","pattern":"^-?\\d{0,8}(?:\\.\\d{0,2})?$"},"start_date":{"type":"string","format":"date-time"},"deadline":{"type":"string","format":"date-time"},"completion_deadline":{"type":"string","format":"date-time"},"user":{"type":"integer","readOnly":true},"category":{"type":"integer"},"currency":{"type":"integer"},"location":{"type":"integer"},"status":{"type":"integer"}}},"PatchedTenderAttachment":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"file":{"type":"string","format":"uri"},"description":{"type":"string","nullable":true},"size":{"type":"integer","maximum":2147483647,"minimum":0},"content_type":{"type":"string","maxLength":100},"tender":{"type":"integer"}}},"PatchedUser":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"email":{"type":"string","format":"email","maxLength":254},"phone":{"type":"string","maxLength":20},"gender":{"type":"string","maxLength":10},"birth_date":{"type":"string","format":"date","nullable":true},"cr_number":{"type":"string","maxLength":100},"first_name":{"type":"string","maxLength":150},"last_name":{"type":"string","maxLength":150},"password":{"type":"string","writeOnly":true,"maxLength":128},"username":{"type":"string","description":"Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.","maxLength":150},"company_name":{"type":"string","writeOnly":true},"category_name":{"type":"string","writeOnly":true},"is_verified":{"type":"boolean","readOnly":true}}},"SavedTender":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"tender":{"type":"integer"}},"required":["id","tender"]},"Status":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":50},"description":{"type":"string"}},"required":["description","id","name"]},"Tender":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/TenderAttachment"},"readOnly":true},"bids":{"type":"array","items":{"$ref":"#/components/schemas/Bid"},"readOnly":true},"is_saved":{"type":"string","readOnly":true},"title":{"type":"string","maxLength":255},"description":{"type":"string"},"is_approved":{"type":"boolean","readOnly":true},"budget_min":{"type":"string","format":"decimal","pattern":"^-?\\d{0,8}(?:\\.\\d{0,2})?$"},"budget_max":{"type":"string","format":"decimal","pattern":"^-?\\d{0,8}(?:\\.\\d{0,2})?$"},"start_date":{"type":"string","format":"date-time"},"deadline":{"type":"string","format":"date-time"},"completion_deadline":{"type":"string","format":"date-time"},"user":{"type":"integer","readOnly":true},"category":{"type":"integer"},"currency":{"type":"integer"},"location":{"type":"integer"},"status":{"type":"integer"}},"required":["attachments","bids","budget_max","budget_min","category","currency","deadline","description","id","is_approved","is_saved","location","start_date","status","title","user"]},"TenderAttachment":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"file":{"type":"string","format":"uri"},"description":{"type":"string","nullable":true},"size":{"type":"integer","maximum":2147483647,"minimum":0},"content_type":{"type":"string","maxLength":100},"tender":{"type":"integer"}},"required":["content_type","file","id","size","tender"]},"TokenRefresh":{"type":"object","properties":{"access":{"type":"string","readOnly":true},"refresh":{"type":"string"}},"required":["access","refresh"]},"User":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"email":{"type":"string","format":"email","maxLength":254},"phone":{"type":"string","maxLength":20},"gender":{"type":"string","maxLength":10},"birth_date":{"type":"string","format":"date","nullable":true},"cr_number":{"type":"string","maxLength":100},"first_name":{"type":"string","maxLength":150},"last_name":{"type":"string","maxLength":150},"password":{"type":"string","writeOnly":true,"maxLength":128},"username":{"type":"string","description":"Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.","maxLength":150},"company_name":{"type":"string","writeOnly":true},"category_name":{"type":"string","writeOnly":true},"is_verified":{"type":"boolean","readOnly":true}},"required":["email","id","is_verified","password","username"]}},"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}}}