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.

Colores when Accept: application/json application/vnd.autocosmos.entry+json text/json
{
  "_links": {
    "rel1": {
      "href": "/v3/colores?someparam=somevalue"
    },
    "rel2": {
      "href": "/v3/colores?param1={param1}&param2={param2}",
      "templated": true
    }
  },
  "_entries": [
    {
      "Nombre": "Blue",
      "HtmlColor": "#0000ff",
      "_links": {
        "rel1": {
          "href": "/v3/colores/somevalue"
        }
      }
    },
    {
      "Nombre": "Rojo",
      "HtmlColor": "#FF2800",
      "_links": {
        "rel1": {
          "href": "/v3/colores/somevalue"
        }
      }
    }
  ]
}
ColoresRef when Accept: application/vnd.autocosmos.ref+json
{
  "_links": {
    "rel1": {
      "href": "/v3/colores?someparam=somevalue"
    },
    "rel2": {
      "href": "/v3/colores?param1={param1}&param2={param2}",
      "templated": true
    }
  },
  "_entries": [
    {
      "href": "/v3/colores/somevalue",
      "title": "Blue"
    },
    {
      "href": "/v3/colores/somevalue",
      "title": "Rojo"
    }
  ]
}

HTTP-StatusCode 400

ValidationProblemDetails Content-Type: application/problem+json
{
  "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": {}
}