I need to develop & consume lot of REST services. Instead of hard coding the URI at server & client, I want it to be a generic approach. So in future if the URI changes, I can change it at one place.
Is there any best way to build URI? Here are some sample REST service I want to write,
http://server/services/user/authenticate?user=x&pass=y
http://server/services/user/authorize?user=x
http://server/services/session/create/id
http://server/services/session/close/id
http://server/services/shopping/orders
http://server/services/shopping/orders/id
Thanks in advance.
是否可以创建一个提供当前URL的BootStrap服务?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.