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
Post a Comment