#LOGIN curl -X POST \ -H 'cache-control: no-cache' \ https://hp.gestocorp.com/api/v1/login \ -H 'content-type: application/json' \ -d '{"email" : "romulodanzer@gmail.com","password" : "trocar123"}' #body {"email" : "romulodanzer@gmail.com","password" : "senha123"} ##quando administrator = true usuario pode editar carregamentos listados que contenham load_end preenchido. #resposta sucesso { "name": "Romulo Danzer", "branch_id": 1, "email": "romulodanzer@gmail.com", "administrator": true, "auth_token": "_Z8lflknUXtjKcbS1wdpXg" } #listar carregamentos da filial do usuario balsas #listar carregamentos da filial do usuario balsas curl -X GET \ -H 'cache-control: no-cache' \ https://hp.gestocorp.com/api/v1/ferry_load \ -H 'content-type: application/json' \ -d '{"auth_token":"_Z8lflknUXtjKcbS1wdpXg"}' #listar placas carregadas em carregamento curl -X GET \ -H 'cache-control: no-cache' \ https://hp.gestocorp.com/api/v1/ferry_load/12 \ -H 'content-type: application/json' \ -d '{"auth_token":"_Z8lflknUXtjKcbS1wdpXg"}' #listar balsas curl -X GET \ -H 'cache-control: no-cache' \ https://hp.gestocorp.com/api/v1/ferry \ -H 'content-type: application/json' \ -d '{"auth_token":"_Z8lflknUXtjKcbS1wdpXg"}' #mostrar balsa unica curl -X GET \ -H 'cache-control: no-cache' \ https://hp.gestocorp.com/api/v1/ferry/id \ -H 'content-type: application/json' \ -d '{"auth_token":"_Z8lflknUXtjKcbS1wdpXg"}' #listar filiais curl -X GET \ -H 'cache-control: no-cache' \ https://hp.gestocorp.com/api/v1/branch \ -H 'content-type: application/json' \ -d '{"auth_token":"_Z8lflknUXtjKcbS1wdpXg"}' # #listar clientes curl -X GET \ -H 'cache-control: no-cache' \ https://hp.gestocorp.com/api/v1/client \ -H 'content-type: application/json' \ -d '{"auth_token":"_Z8lflknUXtjKcbS1wdpXg"}' # listar motoristas curl -X GET \ -H 'cache-control: no-cache' \ https://hp.gestocorp.com/api/v1/driver \ -H 'content-type: application/json' \ -d '{"auth_token":"_Z8lflknUXtjKcbS1wdpXg"}' #incluir carretas curl -X POST \ -H 'cache-control: no-cache' \ https://hp.gestocorp.com/api/v1/movimento \ -H 'content-type: application/json' \ -d '{"auth_token":"_Z8lflknUXtjKcbS1wdpXg", "trailer_id":"900", "ferry_load_id":"11", "position":"22", "client_id":"11", "driver_id":"4", "photos":"http://foto1.com, http://foto2.com, http://foto3.com", "seal":"11", "created_at":"2020-10-05 00:00:00"}' # SE SALVO COM sucesso 'Embarque realizado com sucesso', status: 200 # SE POSICAO JA utilizada json: "Posição já utilizada", status: 200 # SE CARRETA DUPLICADA {"trailer_id":["já está em uso"]}