An Introduction to

REST

Survey

What is REST?

Why use REST?

Best Practices

Who is using it?

Conclusion 

Representational

state transfer

What does it stand for?

Response format

JSON

HTML

XML

or something else

Which is a REST API?

GET /someoperation?data=anId

POST /anotheroperation
{
  "data":"anId"; 
  "anotherdata":"another value"
}
GET /someresources/anId

PUT /someresources/anId
{"anotherdata":"another value"}

A

B

RPC vs REST

RPC = The operation request style

REST = The resource request style

Characteristics REST

The endpoint contains the resource you manipulate.

It resembles CRUD

Further reading

What is REST?

Why use REST?

Best Practices

Who is using it?

Conclusion 

Performance

Reliability

Simplicity

Modifiability

...and more

What is REST?

Why use REST?

Best Practices

Who is using it?

Conclusion 

Almost Everyone

Survey

What is REST?

Why use REST?

Best Practices

Who is using it?

Conclusion 

Design first

Never break compatibility 

Use JSON

Use proper Tooling

Further reading

What is REST?

Why use REST?

Best Practices

Who is using it?

Conclusion 

Use REST ;)

REST Introduction

By Niklas Heer

REST Introduction

An introduction to REST APIs and best practices.

  • 320