Hacker News new | ask | show | jobs
by cognivore 4608 days ago
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?

1 comments

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.