News for hackers. Stuff that matters.
Re:Get information about any country via a RESTful API by cognivore on Thursday October 31, 2013 @09:39AM (#6646697)
Since the project seems to have an educational bent, what would the proper REST interface for it look like?

GET:

http://restcountries.eu/rest/alpha/ee would be http://restcountries.eu/countries?alpha=ee

http://restcountries.eu/rest/name/norge would be http://restcountries.eu/countries?name=norge

That seems right, right?

Re:Get information about any country via a RESTful API by smizell on Thursday October 31, 2013 @10:05AM (#6646826)
Neither is more or less RESTful than the other. The media type and link relations express to the client what resource is being returned, not the URL itself.