rest - Random RESTful Resource -


i trying design urls can 1 random resource of said type. best route in going this, query params?

/fruits/orange?search=random

since there's no formal definition rest url designs, answer going quintessentially subjective. however, tend think it's more consistent restful url patterns server random resource via url this: /fruits/orange/random (especially can't think of query parameter key name makes sense use). however, in keeping whole idea of rest seem best /fruits/orange/random redirects user specific entity, e.g., /fruits/orange/4129.


Comments

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -