API /roles sample

This commit is contained in:
Emmanuel Viennet 2022-08-06 23:27:01 +03:00
parent 91aacaae77
commit e7b20625be

View File

@ -0,0 +1,28 @@
### roles
`/api/roles/`
```json
[
{
'id': 1,
'name': 'Observateur',
'permissions': ['ScoObservateur'
]
},
{
'id': 2,
'name': 'Ens',
'permissions': [
'ScoEntrepriseView',
'ScoEtudAddAnnotations',
'ScoAbsAddBillet',
'ScoAbsChange',
'ScoUsersView',
'ScoObservateur',
'ScoEnsView',
'ScoView'
]
}
]
```