DocAssiduites/docs/samples/sample_assiduites_count.json.md

85 lines
1.4 KiB
Markdown
Raw Normal View History

### assiduites_count
#### GET /assiduites/1/count
```json
{
2024-07-25 16:04:18 +02:00
"compte": 3,
"demi": 2,
"heure": 4.0,
"journee": 3
}
```
#### GET /assiduites/1/count/query?etat=present,retard&metric=compte,heure
```json
{
"compte": 1,
"heure": 0.0
}
```
#### GET /assiduites/1/count/query?etat=retard
```json
{
2024-07-25 16:04:18 +02:00
"compte": 1,
"demi": 0,
2024-07-25 16:04:18 +02:00
"heure": 0.0,
"journee": 1
}
```
2023-07-28 11:30:28 +02:00
#### GET /assiduites/1/count/query?split
```json
{
"absent": {
2024-07-25 16:04:18 +02:00
"compte": 2,
"demi": 2,
"heure": 4.0,
"journee": 2,
"justifie": {
"compte": 0,
"demi": 0,
"heure": 0,
"journee": 0
},
"non_justifie": {
2024-07-25 16:04:18 +02:00
"compte": 2,
"demi": 2,
"heure": 4.0,
"journee": 2
}
},
"present": {
2024-07-25 16:04:18 +02:00
"compte": 0,
"demi": 0,
2024-07-25 16:04:18 +02:00
"heure": 0,
"journee": 0
},
"retard": {
2024-07-25 16:04:18 +02:00
"compte": 1,
"demi": 0,
2024-07-25 16:04:18 +02:00
"heure": 0.0,
"journee": 1,
"justifie": {
2024-07-25 16:04:18 +02:00
"compte": 1,
"demi": 0,
2024-07-25 16:04:18 +02:00
"heure": 0.0,
"journee": 1
},
"non_justifie": {
"compte": 0,
"demi": 0,
"heure": 0,
"journee": 0
}
},
"total": {
2024-07-25 16:04:18 +02:00
"compte": 3,
"demi": 2,
"heure": 4.0,
"journee": 3
}
}
```