Re: [akka-user] Akka REST API - Path Param vs Headers

2017-04-29 Thread Konrad Malawski
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. -- Ko

[akka-user] Akka REST API - Path Param vs Headers

2017-04-29 Thread Arun
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 pa