From the course: Programming Foundations: APIs and Web Services

Unlock the full course today

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

Create a RESTful API

Create a RESTful API

From the course: Programming Foundations: APIs and Web Services

Start my 1-month free trial

Create a RESTful API

- [Narrator] In this video we will look at creating a custom API. This is the case where you have information or data that you'd like to share with others and the easiest way to give them access is to put an API on top of your data. I will demonstrate the process of creating an API using Java-based Spring Data REST. So this is the documentation page for Spring Data REST. Spring Data REST is a part of the umbrella Spring Data project and makes it easy to build hypermedia driven RESTful web services. So now let's navigate back to the code and that is in Intellij and let's open the Maven POM file. So you will find it here, just double click on it and notice on lines 66-69 I've included the Spring DATA rest dependency and that's all I need to do to start using Spring Data REST. So now let's look at our domain model. So you can open ticket.java and that's under domain. Double click on it. Let's make more room. So we are looking at code for a ticketing system that allows for the submission…

Contents