skygear-server
skygear-server copied to clipboard
next: Revise record gear routes
proposal:
(change)
/record/schema/access
-> /record/creation_access/update
(not existed yet)
-> /record/creation_access/get
/record/schema/default_access
-> /record/default_access/update
(not existed yet)
->/record/default_access/get
/record/schema/field_access/get
-> /record/field_access/get
/record/schema/field_access/update
-> /record/field_access/update
(no change)
/record/schema/rename
/record/schema/delete
/record/schema/create
/record/schema/fetch
/record/fetch
/record/query
/record/save
/record/delete
On the other hand, we may also consider revise the underlying record store (skydb) function name and comments. https://github.com/SkygearIO/skygear-server/blob/master/pkg/server/skydb/conn.go#L136
The skydb SchemaAccessHandler
also looks a bit strange. It decodes request payload to ACL, but the handler can only handle creation access.