Introduction to REST and Spring Boot



Introduction to REST and Spring Boot

0 0


rest-presentation

Slides for rest/spring-boot presentation for Manchester Java Community April 2015

On Github DebbieRoycroft / rest-presentation

Introduction to REST and Spring Boot

Debbie Roycroft @DebbieRoycroft

Manchester Java Community

@mcrjava

meetup group

linkedin group

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/