Hi,
We currently have an API that looks like
GET /dealer-information/dealer/{dealerid}
GET /dealer-information/dealers
GET /dealer-information/availableServices
GET /dealer-information/getDealersByGeoLocation
GET /dealer-information/getDealersByLocationName
...
etc and all pretty crappy
I would like to refactor to be
GET /dealers
GET /dealers/{dealerid}
GET /dealers/{dealerid}/services
etc
I am not sure how to proceed with the location ones though. My first thought would be
/dealers?long=123464454&lat=34553534534 to replace /dealer-information/getDealersByGeoLocation
/dealers?location=London to replace /dealer-information/getDealersByLocationName
What do we think? Is this the right way or is there a better way?
Bear in mind I am trying to implement a pragmatic version of REST as promoted by the Apigee guys so developer understanding and simplicity takes precedence in my design goals.