GET /v3/marcas

Lista de Marcas.

Request

Query parameters

Name Type Descripción
q string Parte nombre de la marca o Codename.
soloMercadoNuevos boolean Filtra solo marcas disponibles actualmente en el mercados de nuevos (default=false).

Responses

HTTP-StatusCode 200

OK

Marcas when Accept: application/json application/vnd.autocosmos.entry+json text/json
{
  "_links": {
    "rel1": {
      "href": "/v3/marcas?someparam=somevalue"
    },
    "rel2": {
      "href": "/v3/marcas?param1={param1}&param2={param2}",
      "templated": true
    }
  },
  "_entries": [
    {
      "Nombre": "Ferrari",
      "Codenames": [
        "ferrari"
      ],
      "Modelos": {
        "_links": {
          "rel1": {
            "href": "/v3/modelos/somevalue"
          },
          "rel2": {
            "href": "/v3/modelos/somevalue?param1={param1}&param2={param2}",
            "templated": true
          }
        }
      },
      "_links": {
        "rel1": {
          "href": "/v3/marcas/somevalue"
        }
      }
    },
    {
      "Nombre": "Mercedes",
      "Codenames": [
        "mercedes",
        "mercedes-benz"
      ],
      "Modelos": {
        "_links": {
          "rel1": {
            "href": "/v3/modelos/somevalue"
          },
          "rel2": {
            "href": "/v3/modelos/somevalue?param1={param1}&param2={param2}",
            "templated": true
          }
        }
      },
      "_links": {
        "rel1": {
          "href": "/v3/marcas/somevalue"
        }
      }
    }
  ]
}
MarcasRef when Accept: application/vnd.autocosmos.ref+json
{
  "_links": {
    "rel1": {
      "href": "/v3/marcas?someparam=somevalue"
    },
    "rel2": {
      "href": "/v3/marcas?param1={param1}&param2={param2}",
      "templated": true
    }
  },
  "_entries": [
    {
      "href": "/v3/marcas/somevalue",
      "title": "Ferrari"
    },
    {
      "href": "/v3/marcas/somevalue",
      "title": "Mercedes"
    }
  ]
}

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": {}
}