REST: lists as path params

URI length

  • HTTP standard sets no limit
  • IE uri limit 2,083 chars
  • Apache uri limit 8KB 

Lists as path params

separate by either ';' or ','

',' for list style
bus/schedule/102,103,512

';' for map style
population/rzezsow;helsinki;wroclaw;espoo

Resources

RESTful Web Services
leonard richardson
sam ruby

apigee books

Roy fieldings article

giving lists as parameters in rest

By samuli

giving lists as parameters in rest

  • 725