Sunday, 15 January 2012

api - What is the correct way to do REST urls? -



api - What is the correct way to do REST urls? -

domain.com/blog/how-to-code/3 (page 3) domain.com/user/alicejohnson/comments

or

domain.com/how-to-code/3 domain.com/alicejohnson/comments

facebook , quora 2nd way: http://www.quora.com/swimming/can-one-swim-from-new-zealand-to-australia eliminate noun , go straight object.

stackoverflow first way: what right way rest urls?

which should do?

most importantly, how impact seo?

also, if 2nd version, how go writing "router" that?

perhaps think of 'blog' , 'user' above namespaces. if there multiple uses how-to-code might have set behind it.

some people tend pedantic "proper rest" seek avoid this. design url schemes fits needs, works tools , allows paste urls browser test code.

api url rest

No comments:

Post a Comment