I am looking for best practices on restful web service standards. One of the main things I want to sort out is entity separation in url. What is the right to do, group methods in one url or separate by entityname?
[WebGet(UriTemplate = "countries/{id}")]
Country GetCountry(int id);
[WebInvoke(UriTemplate = "countries/{id}", Method = "POST")]
Country CreateCountry(int id, Country country);
or
[WebGet(UriTemplate = "resources/lists/countries/{id}")]
Country GetCountry(int id);
[WebInvoke(UriTemplate = "resources/lists/countries/{id}", Method = "POST")]
Country CreateCountry(int id, Country country);