Skip to content

Instantly share code, notes, and snippets.

View maimul's full-sized avatar
:shipit:
Focusing

Mr Nachos maimul

:shipit:
Focusing
  • Texas
View GitHub Profile
@maimul
maimul / GoodURIDesign.md
Created March 15, 2024 10:32 — forked from devgeeks/GoodURIDesign.md
Good URI design

Stolen from Bob Aman's excellent answer on Stack Overflow

General principles for good URI design:

  • Don't use query parameters to alter state
  • Don't use mixed-case paths if you can help it; lowercase is best
  • Don't use implementation-specific extensions in your URIs (.php, .py, .pl, etc.)
  • Don't fall into RPC with your URIs
  • Do limit your URI space as much as possible
  • Do keep path segments short