
Explore a quick start to building restful web services with Spring Framework through short, step-by-step lessons, emphasizing incremental code examples and guided next steps.
Download and install the Java development kit for macOS, verify the installed version, locate the Java home folder, and set the JAVA_HOME environment variable for restful web services development.
Define and bind rest endpoints for user operations using spring annotations, implementing get, post, put, and delete mappings to create, read, update, and delete user details with json payloads.
Read a user id from the url path by binding a path variable in a spring rest controller, using @PathVariable and testing requests with postman.
Learn how to make one or both of your GetUsers request parameters optional by assigning default values, such as page=1 and limit=50. Explore using required=false for optional parameters, handle potential null values and null pointer exceptions, and prefer defaults with strings like sort to avoid type issues.
This video course is a Quick Start to learning How to Build RESTful Web Services with Spring Framework.
As you go through this video course you will learn how to use tools like:
Spring Tool Suite Development Environment,
Postman HTTP client, so that you can send HTTP Requests and Receive HTTP Responses,
You will also learn how to Download and Install Java if you do not have it already.
Although this video course is very short, and is very simple, it is also very practical!
You will write Java code that handles different types of HTTP Requests. You will learn how to create web service endpoints that accept HTTP Post, HTTP GET, HTTP PUT and HTTP Delete requests.
You will learn how to make your RESTful Web Service endpoints accept information via URL Query String parameters, via URL Path Parameters as well as information sent via the body of HTTP Request,
Additionally to learning how to read request parameters from HTTP request, you will learn how to make your RESTful Web Service, return information in different formats. For example, you will learn how to return information as a plain text or as a JSON or XML document.
You will learn how to validate HTTP request parameters and also how to validate a information sent via HTTP Request body. Make sure that certain required fields are not empty and that email address for example is of a correct format.
You will learn how to handle errors in your RESTful Web Service and also learn how to return information about the error in different custom formats.
And finally, additionally to building and running your RESTful Web Service with a Spring Tool Suite development environment, you will learn how to run your RESTful Web Service as a standalone Java application which runs independently of your development environment.