I suggest you have a look at some guides about REST in general :) path should be used to identify a resource, such as person/367 and person/367/activity etc. headers are used for other things, but should not really be for resource identification. Could be auth or similar things for example.
-- Konrad Malawski On April 29, 2017 at 23:19:30, Arun ([email protected]) wrote: > Hi, > > I am using Akka HTTP routes to define Akka HTTP REST end points. > > Are there any guidelines that says "we should not use path param, and try > to use header", if yes in what all cases it should be followed? > > for example a URI like /students/{state}/{dept} vs using using URI > /staudents and pass state , dept as header value... > > > Thanks for your help. > > Regards, > Arun > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
