.net - REST service URI design -


i creating restful service needs return collection of items, needs allow filtering several indexes (location, company, , category). these filters can applied individually or in combination. situation using filters applied in query string make sense? (some like: /items?company={}&location={}&category={}) there better way pass filters resource?

the preferred way pass search parameters use query string (indeed, that's why it's called query string). path identifies particular resource want (an index of items). query string may include, e.g., filter conditions, used alter how resource represented - still same resource (an index of items), path should same.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -