From the course: Java EE: RESTful Service with JAX-RS 2.0

Unlock the full course today

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

REST introduction

REST introduction

From the course: Java EE: RESTful Service with JAX-RS 2.0

Start my 1-month free trial

REST introduction

- [Instructor] REST means Representational State Transfer and combines the use of URLs and HTTP verbs, such as post and get, to represent and transfer resources. Now what do I mean by resources? Well, often this boils down to the serialization of a POJO represented as a JSON string. It's not part of the design pattern that the resource must be represented as JSON. We could just well use XML. However, it has become convention for common use and in this course, we will use JSON. Developing RESTful API is as much an art as it is a science. And how to do so well is a course unto itself. So, I will not be covering principles of good or bad design, specifically, I will focus on the actual mechanism of writing the code that implements your already well designed API and to show you how to use the JAX-RS API to make it easy to implement a REST server and client. But before we get to the nitty gritty, let's have a quick reminder of what REST and RESTful APIs actually look like. So, a RESTful…

Contents