DocScoDoc/docs/samples/sample_assiduites_count.json.md

85 lines
1.4 KiB
Markdown

### assiduites_count
#### GET /assiduites/1/count
```json
{
"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
{
"compte": 1,
"demi": 0,
"heure": 0.0,
"journee": 1
}
```
#### GET /assiduites/1/count/query?split
```json
{
"absent": {
"compte": 2,
"demi": 2,
"heure": 4.0,
"journee": 2,
"justifie": {
"compte": 0,
"demi": 0,
"heure": 0,
"journee": 0
},
"non_justifie": {
"compte": 2,
"demi": 2,
"heure": 4.0,
"journee": 2
}
},
"present": {
"compte": 0,
"demi": 0,
"heure": 0,
"journee": 0
},
"retard": {
"compte": 1,
"demi": 0,
"heure": 0.0,
"journee": 1,
"justifie": {
"compte": 1,
"demi": 0,
"heure": 0.0,
"journee": 1
},
"non_justifie": {
"compte": 0,
"demi": 0,
"heure": 0,
"journee": 0
}
},
"total": {
"compte": 3,
"demi": 2,
"heure": 4.0,
"journee": 3
}
}
```