-
"/api/"
-
"/api/user/"
-
- can be used to create new users
{ "first_name": "value", "last_name": "value", "age": value, "address_no": "value", "address_street": "value", "address_city": "value", "address_country": "value" }
-
- for updating user details
- user_id is compulsory to be passed in
- pass in field names that needs to be changed along with the updated value
{ "user_id": value, "first_name": "value", "last_name": "value", "age": value, "address_no": "value", "address_street": "value", "address_city": "value", "address_country": "value" }
-
_ lists down details for a specific user id _
-
-
"/api/car/"
-
- for creating new car objects
{ "model": "value", "brand": "value", "number_plate": "value", "user_id": value }
-
- for updating created car objects
- user_id is compulsory to be passed in
- pass in field names that needs to be changed along with the updated value
{ "car_id": value, "model": "value", "brand": "value", "number_plate": "value", "user_id": value }
-
- for deleting existing car records
- pass in only the value of car_id and it'll delete the record
{ "car_id": value }
-
"/api/ad/"
-
- for creating new ads
{ "title": "value", "description": "value", "price": "value", "user_id": value, "car_id": value }
-
- for updating Ad objects
- ad_id is compulsory to be passed in
- pass in field names that needs to be changed along with the updated value
{ "ad_id": value, "car_id": value, "model": "value", "brand": "value", "number_plate": "value", "user_id": value }
-
- for deleting existing Ad records
- pass in only the value of ad_id and it'll delete the record
{ "ad_id": value }