GET Listar Contexto Ocupação
Endpoint
/api/Contexto/ocupacao
Resumo
Retorna uma lista com diversas opções de ocupação, que podem ser utilizadas na proposta.
Authorization
É necessário um token de autorização do tipo Bearer Token. O token deve ser fornecido da seguinte forma:
Token |
eyJ... |
Headers
Accept: | application/json |
Content-Type: | application/json |
Exemplo de Request
php
<?php
$client = new Client();
$headers = [
'accept' => 'application/json',
'Content-Type' => 'application/json'
];
$request = new Request(
'GET',
'https://app2-crefaz-api-external-stag.azurewebsites.net/api/Contexto/ocupacao',
$headers
);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
Exemplo de Response/
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
}
Headers (5)
key | Value |
Content-Type | application/json; charset=utf-8 |
Date | Fri, 04 Oct 2024 17:58:06 GMT |
Server | Kestrel |
Transfer-Encoding | chunked |
Request-Context | appId=cid-v1:d0033e30-cc70-4961-9727-b7389fb39348 |