-
People:
-
GET
(/people
,/person/:id
)- filter
fields
frompermissions:people:view
- filter
-
PUT
(/person/:id
)- sending
gid
is required for put, when gid out of date, returnoutdated
error. - validate
fields
frompermissions:people:edit
- Return specific errors when field also in
permissions:people:view
- Return specific errors when field also in
- sending
-
POST
(/people
)- require
create
fields, which can only be edited on creation.
- require
-
DELETE
(/person/:id
)- requires access to all
create
fields to be deleted.
- requires access to all
-
-
Roles:
-
GET
(/roles
,/roles/:id
)- filter
fields
frompermissions:roles:view
- filter
-
PUT
(/roles/:id
)- validate
fields
frompermissions:roles:edit
- Return specific errors when field also in
permissions:roles:view
- Return specific errors when field also in
- validate
-
POST
(/roles
)- require
create
fields, which can only be edited on creation. - after create trigger:
- create permissions for
people_roles
::new_id for roles currently granting create role permission.
- create permissions for
- require
-
DELETE
(/roles/:id
)- requires access to all
create
fields to be deleted.- remove linked permissions
- requires access to all
-
-
Fields:
-
GET
(/fields
,/fields/:id
)- filter
fields
frompermissions:fields:view
- filter
-
PUT
(/fields/:id
)- validate
fields
frompermissions:fields:edit
- Return specific errors when field also in
permissions:fields:view
- Return specific errors when field also in
- validate
-
POST
(/fields
)- require
create
fields, which can only be edited on creation.- after create:
- create permissions for
field
and assign view/edit permissions to currently granting create field permission.
- create permissions for
- after create:
- require
-
DELETE
(/fields/:id
)- requires access to all
create
fields to be deleted.- remove linked permissions
- requires access to all
-
-
Links:
PUT
(/link/<table1>/<table2>
)
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.