GET /v3/colores
Lista de Colores.
Request
Query parameters
Name | Type | Descripción |
---|---|---|
q | string | Parte del nombre a buscar |
nombre | string | Nombre completo del color |
Responses
HTTP-StatusCode 200
Lista completa de colores.
{ "_links": { "rel1": { "href": "/v3/colores?someparam=somevalue" }, "rel2": { "href": "/v3/colores?param1={param1}¶m2={param2}", "templated": true } }, "_entries": [ { "Nombre": "Blue", "HtmlColor": "#0000ff", "_links": { "rel1": { "href": "/v3/colores/somevalue" } } }, { "Nombre": "Rojo", "HtmlColor": "#FF2800", "_links": { "rel1": { "href": "/v3/colores/somevalue" } } } ] }
{ "_links": { "rel1": { "href": "/v3/colores?someparam=somevalue" }, "rel2": { "href": "/v3/colores?param1={param1}¶m2={param2}", "templated": true } }, "_entries": [ { "href": "/v3/colores/somevalue", "title": "Blue" }, { "href": "/v3/colores/somevalue", "title": "Rojo" } ] }
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": {} }