DocScoDoc/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-27 13:34:32 +02:00
"compte": 1,
"demi": 0,
"heure": 0.0,
"journee": 1
}
```
#### 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-27 13:34:32 +02:00
"compte": 0,
"demi": 0,
2024-07-27 13:34:32 +02:00
"heure": 0,
"journee": 0
}
```
2023-07-28 11:30:28 +02:00
#### GET /assiduites/1/count/query?split
```json
{
"absent": {
2024-07-27 13:34:32 +02:00
"compte": 0,
"demi": 0,
"heure": 0,
"journee": 0,
"justifie": {
"compte": 0,
"demi": 0,
"heure": 0,
"journee": 0
},
"non_justifie": {
2024-07-27 13:34:32 +02:00
"compte": 0,
"demi": 0,
"heure": 0,
"journee": 0
}
},
"present": {
2024-07-27 13:34:32 +02:00
"compte": 1,
"demi": 0,
2024-07-27 13:34:32 +02:00
"heure": 0.0,
"journee": 1
},
"retard": {
2024-07-27 13:34:32 +02:00
"compte": 0,
"demi": 0,
2024-07-27 13:34:32 +02:00
"heure": 0,
"journee": 0,
"justifie": {
2024-07-27 13:34:32 +02:00
"compte": 0,
"demi": 0,
2024-07-27 13:34:32 +02:00
"heure": 0,
"journee": 0
},
"non_justifie": {
"compte": 0,
"demi": 0,
"heure": 0,
"journee": 0
}
},
"total": {
2024-07-27 13:34:32 +02:00
"compte": 1,
"demi": 0,
"heure": 0.0,
"journee": 1
}
}
```