javascript - Php Rest API path hierarchy w/o id -


i reading book , searching on internet api path hirearchy , have not found solid yet, want know put id retrieve/update/delete hirearchical api methods.

for instance know can do:

authority/resource/[id]/catalog/category1/category2 

also:

authority/resource/catalog/category1/category2/[id] 

in previous example problem comes when next path category2 (id) can numeric field lets update value.

i not know if there standard way of building state transfer api. can build own , wondering if there standards or aproach.

the "standard" allows lot's of interpretations on how can design hierarchy. there not way it.

however think presentation: https://blog.apigee.com/detail/restful_api_design read on topic. outlines design choices , shows how popular apis (such ones offered google or twitter) choose design urls.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -