Atributos

Criar Grupo de Atributo

POST https://api.dooca.store/attributes/values

Body
{
    "attribute_id": 1,
    "name": "Generic Value",
    "description": "Generic Description"
}
Status: 201

Editar Grupo de Atributo

PUT https://api.dooca.store/attributes/values/:id

Parâmetro: O ID do grupo de atributo.

A edição do registro pode ser parcial ou total.

{
    "name": "Generic Value",
    "description": "Generic Description"
}
Status: 200

Deletar Grupo de Atributo

DELETE https://api.dooca.store/attributes/values/:id

Parâmetro: O ID do grupo de atributo.

Response: 204

Consultar Grupo de Atributo

GET https://api.dooca.store/attributes/values/:id

Parâmetro: O ID do grupo de atributo.

HTTP STATUS: 200 OK
{
  "id_attribute_group": "1",
  "name": "Nome do Group de Atributo",
  "slug": "nome-do-grupo-de-atributo",
  "is_visible": "1",
  "active": 1,
  "external_id": null,
  "created_at": "1955-02-24 12:00:00",
  "updated_at": "2011-10-05 12:00:00",
  "values": [
    {
      "id_attribute": "1",
      "external_id": null,
      "name": "Nome do Atributo",
      "slug": "nome-do-atributo",
      "position": "0",
      "active": 1,
      "created_at": "1955-02-24 12:00:00",
      "updated_at": "2011-10-05 12:00:00"
    }
  ]
}

Listar Grupo de Atributos

GET https://api.dooca.store/attributes/values

HTTP STATUS: 200 OK
{
  "total": 99,
  "pages": 4,
  "current_page": 1,
  "limit": 25,
  "offset": 0,
  "data": [
    {
      "id_attribute_group": "1",
      "name": "Nome do Group de Atributo",
      "slug": "nome-do-grupo-de-atributo",
      "is_visible": "1",
      "active": 1,
      "external_id": null,
      "created_at": "1955-02-24 12:00:00",
      "updated_at": "2011-10-05 12:00:00"
    }
  ]
}

Criar Atributo

POST https://api.dooca.store/attributes

Body
{
  "name": "Nome do Atributo",
  "position": 1,
  "image": null
}
Status: 201

Editar Atributo

PUT https://api.dooca.store/attributes/:id

Parâmetro: O ID do atributo.

A edição do registro pode ser parcial ou total.

{
  "name": "Novo nome do Atributo"
}
Status: 200

Deletar Atributo

DELETE https://api.dooca.store/attribute/:id

Parâmetro: O ID do atributo.

Response: 204

Consultar Atributo

GET https://api.dooca.store/attribute/:id

Parâmetro: O ID do atributo.

HTTP STATUS: 200 OK
{
  "id_attribute": "1",
  "id_attribute_group": "1",
  "external_id": null,
  "name": "P",
  "slug": "p",
  "position": "0",
  "active": 1,
  "created_at": "1955-02-24 12:00:00",
  "updated_at": "2011-10-05 12:00:00"
}

Listar Atributo

GET https://api.dooca.store/attribute

HTTP STATUS: 200 OK
{
  "total": 99,
  "pages": 4,
  "current_page": 1,
  "limit": 25,
  "offset": 0,
  "data": [
    {
      "id_attribute": "1",
      "id_attribute_group": "1",
      "name": "P",
      "slug": "p",
      "position": "0",
      "active": 1,
      "external_id": null,
      "created_at": "1955-02-24 12:00:00",
      "updated_at": "2011-10-05 12:00:00"
    }
  ]
}