Busca cards de gestão de banco de horas
curl --request GET \
--url https://api.example.com/banco-horas/gestao/cardsconst options = {method: 'GET'};
fetch('https://api.example.com/banco-horas/gestao/cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/banco-horas/gestao/cards"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/banco-horas/gestao/cards"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/banco-horas/gestao/cards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.example.com/banco-horas/gestao/cards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"horasPositivas": "02:15",
"horasNegativas": "02:15",
"movimentacoesEmRascunho": 3,
"fechamentos": [
{
"regraDePontoId": "123-456abc",
"tipoRegra": "BANCO_DE_HORAS",
"dataFechamento": "2024-12-31T00:00:00.000Z",
"diasParaFechamento": 17
}
]
}{
"service": "<string>",
"method": "<string>",
"message": "message erro"
}Banco de Horas
Busca cards de gestão de banco de horas
GET
/
banco-horas
/
gestao
/
cards
Busca cards de gestão de banco de horas
curl --request GET \
--url https://api.example.com/banco-horas/gestao/cardsconst options = {method: 'GET'};
fetch('https://api.example.com/banco-horas/gestao/cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/banco-horas/gestao/cards"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/banco-horas/gestao/cards"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/banco-horas/gestao/cards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.example.com/banco-horas/gestao/cards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"horasPositivas": "02:15",
"horasNegativas": "02:15",
"movimentacoesEmRascunho": 3,
"fechamentos": [
{
"regraDePontoId": "123-456abc",
"tipoRegra": "BANCO_DE_HORAS",
"dataFechamento": "2024-12-31T00:00:00.000Z",
"diasParaFechamento": 17
}
]
}{
"service": "<string>",
"method": "<string>",
"message": "message erro"
}Response
Cards de gestão de banco de horas
Quantidade de saldo ativo positivo no banco de horas
Example:
"02:15"
Quantidade de saldo ativo negativo no banco de horas
Example:
"02:15"
Número de movimentações em rascunho
Example:
3
Fechamentos de bancos de horas
Show child attributes
Show child attributes