EasyRestPhP API Documentation
Your API and Web Framework is up and running. Below are the registered routes discovered automatically:
auth
POST
/auth/{id}/login
->post_login()
POST
/auth/{id}/google
->post_google()
contract_history
GET
/contract_history[/{id}]
->get()
POST
/contract_history[/{id}]
->post()
PATCH
/contract_history[/{id}]
->patch()
DELETE
/contract_history[/{id}]
->delete()
contract_items
GET
/contract_items[/{id}]
->get()
POST
/contract_items[/{id}]
->post()
PATCH
/contract_items[/{id}]
->patch()
DELETE
/contract_items[/{id}]
->delete()
contract_objects
GET
/contract_objects[/{id}]
->get()
POST
/contract_objects[/{id}]
->post()
PATCH
/contract_objects[/{id}]
->patch()
DELETE
/contract_objects[/{id}]
->delete()
contractors
GET
/contractors[/{id}]
->get()
POST
/contractors[/{id}]
->post()
PATCH
/contractors[/{id}]
->patch()
DELETE
/contractors[/{id}]
->delete()
contracts
GET
/contracts[/{id}]
->get()
POST
/contracts[/{id}]
->post()
PATCH
/contracts[/{id}]
->patch()
DELETE
/contracts[/{id}]
->delete()
POST
/contracts/{id}/approve
->post_approve()
POST
/contracts/{id}/reject
->post_reject()
POST
/contracts/{id}/sign
->post_sign()
empreiteiros
GET
/empreiteiros[/{id}]
->get()
POST
/empreiteiros[/{id}]
->post()
PATCH
/empreiteiros[/{id}]
->patch()
DELETE
/empreiteiros[/{id}]
->delete()
index
GET
/
->get()
items
GET
/items[/{id}]
->get()
POST
/items[/{id}]
->post()
PATCH
/items[/{id}]
->patch()
DELETE
/items[/{id}]
->delete()
location_types
GET
/location_types[/{id}]
->get()
POST
/location_types[/{id}]
->post()
PATCH
/location_types[/{id}]
->patch()
DELETE
/location_types[/{id}]
->delete()
locations
GET
/locations[/{id}]
->get()
POST
/locations[/{id}]
->post()
PATCH
/locations[/{id}]
->patch()
DELETE
/locations[/{id}]
->delete()
logs
GET
/logs[/{id}]
->get()
DELETE
/logs[/{id}]
->delete()
profiles
GET
/profiles[/{id}]
->get()
POST
/profiles[/{id}]
->post()
PATCH
/profiles[/{id}]
->patch()
DELETE
/profiles[/{id}]
->delete()
representantes_legais
GET
/representantes_legais[/{id}]
->get()
POST
/representantes_legais[/{id}]
->post()
PATCH
/representantes_legais[/{id}]
->patch()
DELETE
/representantes_legais[/{id}]
->delete()
sites
GET
/sites[/{id}]
->get()
POST
/sites[/{id}]
->post()
PATCH
/sites[/{id}]
->patch()
DELETE
/sites[/{id}]
->delete()
tasks
GET
/tasks[/{id}]
->get()
POST
/tasks[/{id}]
->post()
PATCH
/tasks[/{id}]
->patch()
DELETE
/tasks[/{id}]
->delete()
units
GET
/units[/{id}]
->get()
POST
/units[/{id}]
->post()
PATCH
/units[/{id}]
->patch()
DELETE
/units[/{id}]
->delete()
users
GET
/users[/{id}]
->get()
GET
/users/{id}/sites
->get_sites()
POST
/users/{id}/sites
->post_sites()
POST
/users[/{id}]
->post()
PATCH
/users[/{id}]
->patch()
DELETE
/users[/{id}]
->delete()
POST
/users/{id}/avatar
->post_avatar()
GET
/users/{id}/avatar
->get_avatar()
wagons
GET
/wagons[/{id}]
->get()
POST
/wagons[/{id}]
->post()
PATCH
/wagons[/{id}]
->patch()
DELETE
/wagons[/{id}]
->delete()