Valores de Classificador Personalizado (CustomClassifierValue)

Parâmetros

- value | string | Valor de Classificador Personalizado

Listar Valores de Classificador Personalizado

GET /custom_classifiers/:custom_classifier_id/values

Exibe os Valores de Classificador Personalizado

Exemplo de Resposta

HTTP/1.1 200 OK
Date: Mon, 17 Jan 2011 20:00:02 GMT
Content-Type: application/json; charset=utf-8
[
  {
    "custom_classifier_value": {
      "created_at": "2017-05-12T18:17:59-03:00",
      "custom_classifier_id": 3,
      "id": 14,
      "updated_at": "2017-05-15T19:49:06-03:00",
      "value": "Sul"
    }
  },
  {
    "custom_classifier_value": {
      "created_at": "2017-05-12T18:26:06-03:00",
      "custom_classifier_id": 3,
      "id": 15,
      "updated_at": "2017-05-15T18:09:52-03:00",
      "value": "Sudeste"
    }
  }
]
HTTP/1.1 200 OK
Date: Mon, 17 Jan 2011 20:00:02 GMT
Content-Type: application/xml; charset=utf-8
<custom-classifier-values type="array">
  <custom-classifier-value>
    <created-at type="datetime">2017-05-12T18:17:59-03:00</created-at>
    <custom-classifier-id type="integer">3</custom-classifier-id>
    <id type="integer">14</id>
    <updated-at type="datetime">2017-05-15T19:49:06-03:00</updated-at>
    <value>Sul</value>
  </custom-classifier-value>
  <custom-classifier-value>
    <created-at type="datetime">2017-05-12T18:26:06-03:00</created-at>
    <custom-classifier-id type="integer">3</custom-classifier-id>
    <id type="integer">15</id>
    <updated-at type="datetime">2017-05-15T18:09:52-03:00</updated-at>
    <value>Sudeste</value>
  </custom-classifier-value>
</custom-classifier-values>

Exibir um Valor de Classificador Personalizado

GET /custom_classifiers/:custom_classifier_id/value/:id

Exibe os attributos de um Valor de Classificador Personalizado

Exemplo de Resposta

HTTP/1.1 200 OK
Date: Mon, 17 Jan 2011 20:00:02 GMT
Content-Type: application/json; charset=utf-8
  {
    "custom_classifier_value": {
      "created_at": "2017-05-12T18:17:59-03:00",
      "custom_classifier_id": 3,
      "id": 14,
      "updated_at": "2017-05-15T19:49:06-03:00",
      "value": "Sul"
    }
  }
HTTP/1.1 200 OK
Date: Mon, 17 Jan 2011 20:00:02 GMT
Content-Type: application/xml; charset=utf-8
<custom-classifier-value>
  <created-at type="datetime">2017-05-12T18:17:59-03:00</created-at>
  <custom-classifier-id type="integer">3</custom-classifier-id>
  <id type="integer">14</id>
  <updated-at type="datetime">2017-05-15T19:49:06-03:00</updated-at>
  <value>Sul</value>
</custom-classifier-value>

Criar um Valor de Classificador Personalizado

POST /custom_classifiers/:custom_classifier_id/values

Cria um Valor de Classificador Personalizado

Exemplo de Requisição

Date: Mon, 24 Apr 2017 20:29:57 GMT
Content-Type: application/json; charset=utf-8
{
  "custom_classifier_value": {
    "value": "Nordeste"
  }
}
Date: Mon, 24 Apr 2017 20:29:57 GMT
Content-Type: application/xml; charset=utf-8
<custom-classifier-value>
  <value>Nordeste</value>
</custom-classifier-value>

Exemplo de Resposta

HTTP/1.1 201 Created
Date: Mon, 24 Apr 2017 20:29:57 GMT
Content-Type: application/json; charset=utf-8
{
  "custom_classifier_value": {
    "created_at": "2017-05-19T17:42:08-03:00",
    "custom_classifier_id": 3,
    "id": 24,
    "updated_at": "2017-05-19T17:42:08-03:00",
    "value": "Nordeste"
  }
}
HTTP/1.1 201 Created
Date: Mon, 24 Apr 2017 20:29:57 GMT
Content-Type: application/xml; charset=utf-8
<custom-classifier-value>
  <created-at type="datetime">2017-05-19T17:42:54-03:00</created-at>
  <custom-classifier-id type="integer">3</custom-classifier-id>
  <id type="integer">24</id>
  <updated-at type="datetime">2017-05-19T17:42:54-03:00</updated-at>
  <value>Nordeste</value>
</custom-classifier-value>

Atualizar um Valor de Classificador Personalizado

PUT /custom_classifiers/:custom_classifier_id/value/:id

Atualiza um Valor de Classificador Personalizado

Exemplo de Requisição

Date: Mon, 24 Apr 2017 20:29:57 GMT
Content-Type: application/json; charset=utf-8
{
  "custom_classifier_value": {
    "value": "Norte"
  }
}
Date: Mon, 24 Apr 2017 20:29:57 GMT
Content-Type: application/xml; charset=utf-8
<custom-classifier-value>
  <value>Norte</value>
</custom-classifier-value>

Exemplo de Resposta

HTTP/1.1 200 OK
Date: Mon, 24 Apr 2017 20:29:57 GMT
Content-Type: application/json; charset=utf-8
{
  "custom_classifier_value": {
    "created_at": "2017-05-19T17:42:08-03:00",
    "custom_classifier_id": 3,
    "id": 24,
    "updated_at": "2017-05-19T17:42:08-03:00",
    "value": "Norte"
  }
}
HTTP/1.1 200 OK
Date: Mon, 24 Apr 2017 20:29:57 GMT
Content-Type: application/xml; charset=utf-8
<custom-classifier-value>
  <created-at type="datetime">2017-05-19T17:42:54-03:00</created-at>
  <custom-classifier-id type="integer">3</custom-classifier-id>
  <id type="integer">24</id>
  <updated-at type="datetime">2017-05-19T17:42:54-03:00</updated-at>
  <value>Norte</value>
</custom-classifier-value>

Apagar um Valor de Classificador Personalizado

DELETE /custom_classifiers/:custom_classifier_id/values/:id

Apaga um Valor de Classificador Personalizado

Exemplo de Resposta

HTTP/1.1 204 No Content
Date: Mon, 17 Jan 2011 20:00:02 GMT
Content-Type: application/json; charset=utf-8
[]
HTTP/1.1 204 No Content
Date: Mon, 17 Jan 2011 20:00:02 GMT
Content-Type: application/xml; charset=utf-8