Spring Boot REST API crash course
If you want to create cloud-native microservices in Java, and you want to take advantage of the language's most popular, open-source web framework, then you need to learn RESTful API development with Spring Boot.
Top 10 Spring REST API concepts to learn
This crash course on how to build a RESTful API with Spring Boot teaches everything you need to know to immediately develop enterprise-grade microservices in Java. In just 90 minutes you'll learn how to do the following:
- Create a microservice development project using the Spring Tool Suite in Eclipse.
- Use the @GetMapping, @PostMapping, @BatchMapping and @DeleteMapping annotations.
- Identify the differences between a standard Spring Controller and a RestController.
- Identify the differences between the HTTP methods PATCH, PUT, DELETE, POST and GET.
- Obtain user input in the form of query parameters.
- Streamline microservice request-response handling with the @PathParam annotation.
- Test REST APIs with Spring Dev Tools, PostMan, cURL and even a web browser.
- Invoke a RESTful web service from a JavaScript client.
- Parse JSON data returned from a Spring Boot REST API.
- Prepare a Spring Boot JAR file for Docker-based deployment to the Azure or AWS cloud.
Project-driven Spring Boot APIs
There are two sides to every RESTful API call: the client that makes the request and the server that sends back a response.
However, in most Spring Boot REST API tutorials, the focus is entirely on the server, and little attention is given to the client. That's where this Spring REST API course stands out.
While a great deal of effort is spent to create a comprehensive RESTful web service, all the APIs created in this tutorial are designed to support a fun, web-based Rock-Paper-Scissors game.
Learn RESTful API client and server development
Along with a robust and scalable Spring REST API, this tutorial also shows how to create an HTML and JavaScript game that sends requests to the Spring Boot API and consumes the JSON data returned from the RESTful API.
If you want to learn RESTful API development with Spring Boot, and understand how to both handle and consume data exchanged through an HTTP-based request-response cycle, this crash course on how to build Spring Boot REST APIs will serve you well.
Cameron McKenzie has been a Java EE software engineer for 20 years. His current specialties include Agile development; DevOps; and container-based technologies such as Docker, Swarm and Kubernetes.