Lista de processos monitorados
Retorna a lista de processos cadastrados no monitoramento.
Requisição
GET https://api.push.codilo.com.br/v1/processo/listar
Parâmetros
Atenção!
Os parâmetros abaixo são query string
Nome | Tipo | Obrigatório | Descrição |
---|---|---|---|
value | string | false | Valor de busca válido: ex.: 0804495-71.2018.8.10.0001 |
page | integer | false | Página: ex.: 1 |
limit | integer | false | Limite por página: ex.: 25 |
start | string | false | Data inicial da lista: ex.: 2019-10-01 |
end | string | false | Data final da lista: ex.: 2019-11-20 |
Exemplos
- cURL
- Python
- PHP
- NodeJs
curl --request GET \
--url https://api.push.codilo.com.br/v1/processo/listar \
--header 'Authorization: Bearer eyJh...hBA'
import requests
headers = {
'Authorization': 'Bearer eyJh...hBA',
}
response = requests.get('https://api.push.codilo.com.br/v1/processo/listar', headers=headers)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.push.codilo.com.br/v1/processo/listar');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer eyJh...hBA',
]);
$response = curl_exec($ch);
curl_close($ch);
var request = require("request");
var headers = {
Authorization: "Bearer eyJh...hBA",
};
var options = {
url: "https://api.push.codilo.com.br/v1/processo/listar",
headers: headers,
};
function callback(error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body);
}
}
request(options, callback);
Respostas
- Sucesso
{
"success": true,
"data": {
"totalItems": 2,
"currentPage": 1,
"pageSize": 25,
"totalPages": 1,
"list": [
{
"id": "43e595f8-716f-464b-9c2a-5c4318bd787c",
"cnj": "0030779-57.2015.8.10.0001",
"createdAt": "2022-03-11T13:16:53.372Z"
},
{
"id": "ced67beb-29fd-45dd-b12f-79ae260f9be0",
"cnj": "0001716-28.1990.8.11.0003",
"createdAt": "2022-03-11T13:14:46.805Z"
}
]
}
}
Status | Significado | Descrição | Schema |
---|---|---|---|
200 | OK | Sucesso | None |
401 | Unauthorized | Access denied | None |