Skip to content

Latest commit

 

History

History
97 lines (70 loc) · 1.63 KB

README.md

File metadata and controls

97 lines (70 loc) · 1.63 KB

auction_site

Sample format for registration as Vendor and Bidder

URL- localhost:8000/register/

REQUEST FOR VENDOR

{ "type":"Vendor", "first_name": "asassa", "last_name": "asasas", "email": "[email protected]", "password": "asasasas", "company_name": "asfdf", "mobile": "223322", "telephone": "324354", "address_line1": "24354fdfdfd", "address_line2": "wewf4tfv dsf", "city": "dsfffss", "pincode": "224421", "country": 2, "state": "sdsddssd" }

REQUEST FOR BIDDER

{ "type":"Bidder", "first_name": "asassa", "last_name": "asasas", "email": "[email protected]", "password": "asasasas", "company_name": "asfdf", "mobile": "223322", "telephone": "324354", "address_line1": "24354fdfdfd", "address_line2": "wewf4tfv dsf", "city": "dsfffss", "pincode": "224421", "country": 2, "state": "sdsddssd" }

Response for bidder-

{ "id": 1, "first_name": "asassa", "last_name": "asasas", "email": "[email protected]", "password": "asasasas", "company_name": "asfdf", "mobile": "223322", "telephone": "324354", "address_line1": "24354fdfdfd", "address_line2": "wewf4tfv dsf", "city": "dsfffss", "pincode": "224421", "country": 2, "state": "sdsddssd" }

Sample format for login as Vendor and Bidder-

URL- localhost:8000/login/

REQUEST FOR VENDOR

{ "type":"Vendor", "email": "[email protected]", "password": "asasasas" }

REQUEST FOR BIDDER

{ "type":"Bidder", "email": "[email protected]", "password": "asasasas" }

Response FOR BIDDER

"Hi asassa! You are a great Bidder"