What do server APIs look like?

  • Servers can define their own APIs. No hard and fast rules
  • REST is a popular design paradigm these days
  • URLs should refer to resources (nouns) and request methods refer to actions (verbs)
  • Favors calls like "POST /users/abc-123/notes"
  • As opposed to calls like "POST /create-note?userId=abc-123"
  • REST is a topic for another day

22 / 23