GET /v3/sucursales/{adminmail}
Sucursales de una Agencia.
Request
Path parameters
Name | Type | Constraints | Descripción |
---|---|---|---|
adminMail | string (email) |
Required |
Email operador administrador de la agencia |
Responses
HTTP-StatusCode 200
OK
{ "_links": { "rel1": { "href": "/v3/sucursales?someparam=somevalue" }, "rel2": { "href": "/v3/sucursales?param1={param1}¶m2={param2}", "templated": true } }, "_entries": [ { "Descripcion": "Sede central", "Email": "sac@agencia.com", "Telefono": "+xx 9xx 67895432", "Region": "Modena", "Ciudad": "Maranello", "Direccion": "Av. Siempreviva 742", "Comercial": true, "TallerMecanico": false, "Autopartes": false, "Laborable": { "Desde": "08:00:00", "Hasta": "19:00:00" }, "PreFestivo": { "Desde": "09:00:00", "Hasta": "14:00:00" }, "Festivo": null, "ResponsableLeadsPostVenta": null, "_links": { "rel1": { "href": "/v3/sucursales/somevalue" }, "rel2": { "href": "/v3/sucursales/somevalue", "method": "PUT" } } }, { "Descripcion": "Service", "Email": "postventa@agencia.com", "Telefono": "+xx 9xx 73784230", "Region": "Modena", "Ciudad": "Castelvetro", "Direccion": "Av. Walter Chrysler 70", "Comercial": false, "TallerMecanico": true, "Autopartes": true, "Laborable": { "Desde": "08:00:00", "Hasta": "17:00:00" }, "PreFestivo": { "Desde": "09:00:00", "Hasta": "13:00:00" }, "Festivo": null, "ResponsableLeadsPostVenta": "miguel.postventa@agencia.com", "_links": { "rel1": { "href": "/v3/sucursales/somevalue" }, "rel2": { "href": "/v3/sucursales/somevalue", "method": "PUT" } } } ] }
{ "_links": { "rel1": { "href": "/v3/sucursales?someparam=somevalue" }, "rel2": { "href": "/v3/sucursales?param1={param1}¶m2={param2}", "templated": true } }, "_entries": [ { "href": "/v3/sucursales/somevalue", "title": "Sede central" }, { "href": "/v3/sucursales/somevalue", "title": "Service" } ] }
HTTP-StatusCode 400
{ "Errors": { "_": [ "entry problem1", "entry problem2" ], "property1": [ "problem 1" ] }, "Type": "https://httpstatuses.com/400", "Title": "Validación de información esperada fallida", "Status": 400, "Detail": "Alguna información contiene valores no validos.", "Instance": "/v3/somewhere", "Extensions": {} }
HTTP-StatusCode 404
La agencia, para tu app, no existe.