mp/api.MD
newtbot 233ebafdcb location route
NO validation
no middleware to auth
2023-12-30 03:59:04 +08:00

513 B

//get all curl localhost/api/v0/location

//get id curl localhost/api/v0/1

//post curl localhost/api/v0/add-location -H "Content-Type: application/json" -X POST -d '{"name": "test", "added_by": "noot" , "description": "test"}'

//put curl localhost/api/v0/update-location -X PUT -H "Content-Type: application/json" -d '{"id": "1" , "name": "test", "added_by": "noot", "description": "test123"}'

//delete curl localhost/api/v0/delete-location -X DELETE -H "Content-Type: application/json" -d '{"id": "1" }'