skygear-server icon indicating copy to clipboard operation
skygear-server copied to clipboard

next: Revise record gear routes

Open Steven-Chan opened this issue 6 years ago • 1 comments

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

Steven-Chan avatar Nov 07 '18 08:11 Steven-Chan

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.

Steven-Chan avatar Nov 07 '18 08:11 Steven-Chan