Skip to content

API Design Best Practice #1

Description

@tripott

Use two base URLs per resource. Don't use /shoe and /shoes, instead:

  • GET /shoes — gets a collection of shoes
  • POST /shoes — adds an item to the collection of shoes
  • GET /shoes/id - gets a specific element in the shoe collection

See API Design Best Practices within http://nosql.how2js.com/API/.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions