There is a name for this technique of mapping url? -


instead construct url in mode:

http://www.mysite.com/user/view?name=michele&age=30 

write this:

http://www.mysite.com/user/view/name/michele/age/30 

or

http://www.mysite.com/user/view,name-michele,age-30 

and on.

i believe looking called rest:

representational state transfer (rest) architectural style consisting of coordinated set of architectural constraints applied components, connectors, , data elements, within distributed hypermedia system. rest ignores details of component implementation , protocol syntax in order focus on roles of components, constraints upon interaction other components, , interpretation of significant data elements.

web service apis adhere rest constraints called restful.

+----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------+ |                         resource                         |                                                                                                                   |                                        put                                         |                                                             post                                                              |                     delete                     | +----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------+ | collection uri, such http://example.com/resources     | list uris , perhaps other details of collection's members.                                                  | replace entire collection collection.                             | create new entry in collection. new entry's uri assigned automatically , returned operation. | delete entire collection.                  | | element uri, such http://example.com/resources/item17 | retrieve representation of addressed member of collection, expressed in appropriate internet media type. | replace addressed member of collection, or if doesn't exist, create it. | not used. treat addressed member collection in own right , create new entry in it.                 | delete addressed member of collection. | +----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------+ 

more: http://en.wikipedia.org/wiki/representational_state_transfer


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -