Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 832 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 832 Bytes

Northwind API

Swagger URL

https://data-northwind.indigo.design/swagger/index.html

Highlights

  • Textbook REST example.
  • POST accepts the whole entity, even the "id", although it gets ignored and returns the created entity
  • PUT accepts the whole entity, even the "id"
  • DELETE methods need to map the id, like id=customerId
  • DELETE methods return a copy of the deleted entity
  • Role-based auth support - blog
  • In order to create a Bearer token, use the POST -> /Auth/Register with the example request body:
{
  "email": "[email protected]",
  "password": "test",
  "confirmedPassword": "test"
}

This will return a token in the format:

eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJJZCI6Im....