✍️
Notes
  • notes.karngyan.com
  • karngyan.com
    • Source
    • Active emails
    • Active Subdomains
    • Palette
  • external research
  • Cadence Noob
  • Vue 3
  • REST Rules (that I follow)
  • Did you have a look at X?
    • Vim
    • Competitive Programming
    • CLI
    • People
    • Web Development
      • Backend
      • Frontend
    • DevOps
    • Interview Prep
    • Linux
    • Uncategorized
  • Important Dates
    • Girlfriend
  • Study
    • Killing Boredom for Software Engineers
    • Computer Science - Basics
    • Matrix Multiplication - Experiment
  • JOURNAL
    • 13/05/2020
    • 14/05/2020
Powered by GitBook
On this page

Was this helpful?

REST Rules (that I follow)

For reasons why I do it: Refer REST API Design Rulebook (Mark Masse)

  • / - separation should represent an hierarchy. e.g api.karngyan.com/api/v1/shapes/polygons/quadrilateral/squares

  • no trailing forward slashes please

  • use hyphens(-) instead of underscores(_)

  • use lowercase letters only

  • no artificial file extensions in uri

  • resource archetypes: store (CRUD on /users/1234), document(/leagues/seattle), collection(/leagues/seattle/teams), controller(/alerts/1234/resend)

    • singular nouns for documents

    • plural noun for collections

    • plural noun for store names

    • verb for controller names

PreviousVue 3NextVim

Last updated 4 years ago

Was this helpful?