What to use for space in REST URI?

Posted by Droo on Stack Overflow See other posts from Stack Overflow or by Droo
Published on 2010-04-09T19:39:02Z Indexed on 2010/04/09 19:43 UTC
Read the original article Hit count: 189

Filed under:
|
|
|

What should I use:

  • /findby/name/{first}_{last}
  • /findby/name/{first}-{last}
  • /findby/name/{first};{last}
  • /findby/name/first/{first}/last/{last}

etc.

The URI represents a Person resource with 1 name, but I need to logically separate the first from the last to identify each. I kind of like the last example because I can do:

  • /findby/name/first/{first}
  • /findby/name/last/{last}
  • /findby/name/first/{first}/last/{last}

© Stack Overflow or respective owner

Related posts about rest

Related posts about uri