REST and Spring Boot
Overview of REST
Introduction to Spring Boot
Demonstration
What is REST
- Used for webservices
- Principle rather than protocol
- Stateless - does not rely on sessions
Levels of REST
- RPC
- Resources
- HTTP Verbs
- Hypermedia Controls
REST APIs - Resources
- Object orientated
- Nouns rather than verbs
REST APIs - Http Verbs
- GET, POST, PUT, DELETE +
- Not quite the same as CRUD
- Know which methods are Safe vs Unsafe
- Know which methods are idempotent
REST APIs - Hypermedia Controls
- HATEOAS
- Links and relations in API
Spring Boot
- Quick start for developing Spring Framework applications
- Pick parts of Spring Framework as needed
- Convention over configuration
- Customisable
- Tooling in Eclipse Spring Tool Suite(STS)
Tutorial
Instructions
http://debbieroycroft.github.io/rest-tutorial
Code
https://github.com/DebbieRoycroft/rest-tutorial/