Skip to content

API Design Best Practice #1

@tripott

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/.

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