I am trying to design my URLs so that I can get only one random resource of said type. What is the best route in going about this, query params?
/fruits/orange?search=random
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I decided to go with my query param idea for it is a variable in a an algoroithm. Random does not identify the resource at all so I do not want to map uris for it.
Also this will allow me to abstract my search algorithm for all resources with some AOP.