Wednesday, 8 June 2011

REST URL design principal simplified

Given the following URL sample: /resources/car?color=blue
We can say the following about this URL:
  • The URL itself identifies WHAT we want (Noun) which is car
  • The parameters define the filtering criteria (Pronoun)
  • The REST method (GET, POST, PUT or DELETE) is the verb or action we are taking

No comments:

Post a Comment