Web Development with Node.js

LV 03

Daniel Khan / daniel@khan.io / University of Applied Sciences Hagenberg / KWM

REST

Representational State Transfer

 

Architectural Styles and the Design of Network-based
Software Architectures

Roy Fielding, 2000

/contacts

GET

Ressource

Verb

/contacts

POST

/contacts/42

DELETE

/contacts/42

PUT

Action

List all contacts

Create a new contact

Update a contact

Delete a contact

Requests

OK

200

Meaning

Code

CREATED

201

BAD REQUEST

400

ACCEPTED

202

Responses

NOT FOUND

404

FORBIDDEN

403

Made with Slides.com