API /roles sample
This commit is contained in:
parent
363ce9198d
commit
27b3a665d6
28
docs/samples/sample_roles.json.md
Normal file
28
docs/samples/sample_roles.json.md
Normal 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'
|
||||
]
|
||||
}
|
||||
]
|
||||
```
|
Loading…
Reference in New Issue
Block a user