From e7b20625be8d9ed3270fe6af57a2e2ac06ea04bc Mon Sep 17 00:00:00 2001 From: viennet Date: Sat, 6 Aug 2022 23:27:01 +0300 Subject: [PATCH] API /roles sample --- docs/samples/sample_roles.json.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docs/samples/sample_roles.json.md diff --git a/docs/samples/sample_roles.json.md b/docs/samples/sample_roles.json.md new file mode 100644 index 000000000..035510f22 --- /dev/null +++ b/docs/samples/sample_roles.json.md @@ -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' + ] + } +] +```