# GET Listar Contexto Ocupação

#### **Introdução**

Retorna uma lista com diversas opções de ocupação, que podem ser utilizadas na proposta.

---

#### ***Rota***

```css
/Contexto/ocupacao
```

#### ***Authorization***

É necessário um token de autorização do tipo **Bearer Token**. O token deve ser fornecido da seguinte forma:

<table border="1" id="bkmrk-token-eyj..." style="border-collapse: collapse; width: 115.833%; height: 29.6px;"><colgroup><col style="width: 50.0477%;"></col><col style="width: 50.0477%;"></col></colgroup><tbody><tr style="height: 29.6px;"><td style="height: 29.6px;">Token</td><td style="height: 29.6px;">eyJ...

</td></tr></tbody></table>

##### ***Headers Request***

<table border="1" id="bkmrk-accept%3A-application%2F" style="border-collapse: collapse; width: 111.429%; height: 60.5125px;"><colgroup><col style="width: 49.98%;"></col><col style="width: 49.98%;"></col></colgroup><tbody><tr style="height: 30.9125px;"><td style="height: 30.9125px;">Accept:</td><td style="height: 30.9125px;">application/json</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">Content-Type:</td><td style="height: 29.6px;">application/json</td></tr></tbody></table>

#### **Exemplo de Requisição e Resposta**

---

##### ***Exemplo de Request***

<details id="bkmrk-php-%3C%3Fphp-%24client-%3D-"><summary>curl</summary>

```bash
curl --location 'https://app2-crefaz-api-external-stag.azurewebsites.net/api/Contexto/ocupacao' \
--header 'accept: application/json' \
--header 'Content-Type: application/json'
```

</details>##### ***Exemplo de Response***

<details id="bkmrk-json-%7B-%22success%22%3A-tr"><summary>json</summary>

```json
{
  "success": true,
  "data": [
    {
      "id": 1,
      "nome": "Assalariado",
      "ativo": true
    },
    {
      "id": 2,
      "nome": "Funcionário Público",
      "ativo": true
    },
    {
      "id": 3,
      "nome": "Aposentado",
      "ativo": true
    },
    {
      "id": 4,
      "nome": "Pensionista",
      "ativo": true
    },
    {
      "id": 5,
      "nome": "Autônomo / Sem Vínculo Empregatício",
      "ativo": true
    },
    {
      "id": 6,
      "nome": "Profissional Liberal",
      "ativo": true
    },
    {
      "id": 7,
      "nome": "Empresário / Proprietário",
      "ativo": true
    },
    {
      "id": 8,
      "nome": "Outros",
      "ativo": true
    }
  ],
  "errors": null
}
```

</details>##### ***<span class="Text__TextContainer-sc-1kqigik-0 dLPxIq" data-aether-id="aether-text" data-click="" data-testid="aether-text">Headers de Response (5)</span>***

<table border="1" id="bkmrk-content-type-date-se" style="border-collapse: collapse; width: 100%; height: 177.6px;"><colgroup><col style="width: 50%;"></col><col style="width: 50%;"></col></colgroup><thead><tr style="height: 29.6px;"><td style="height: 29.6px;">key</td><td style="height: 29.6px;">Value</td></tr></thead><tbody><tr style="height: 29.6px;"><td style="height: 29.6px;">Content-Type</td><td style="height: 29.6px;">application/json; charset=utf-8</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">Date</td><td style="height: 29.6px;">Fri, 04 Oct 2024 17:58:06 GMT</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">Server</td><td style="height: 29.6px;">Kestrel</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">Transfer-Encoding</td><td style="height: 29.6px;">chunked</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">Request-Context</td><td style="height: 29.6px;">appId=cid-v1:d0033e30-cc70-4961-9727-b7389fb39348</td></tr></tbody></table>