From the course: Java EE 8 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Rest overview

Rest overview - Java EE Tutorial

From the course: Java EE 8 Essential Training

Start my 1-month free trial

Rest overview

- [Instructor] Let's quickly review REST before we explore the JAX-RS API. In REST architecture, API clients send requests to an API and receive responses over HTTP. The HTTP request contains information such as the URI and the request method that informs the API of a desired operation or data the client is requesting. The API maps request information to an endpoint and then returns a response to the client in adjacent format over HTTP. The response contains resource representations for requested data or information about the operation performed as the result of the client request. The client then receives the response from the API and processes the information returned by the API. Let's look at a quick example to learn more. This REST API provides endpoints that correspond the operations to an inventoryitems resource. It exposes five endpoints for the resource that generally map to CRUD operations. To the left of the…

Contents