In this chapter, we will explain how to develop a REST API using Play Framework. API is an acronym for Application Programming Interface. The REST acronym stands for Representational State Transfer. Basically, we will provide an interface for our application, so that other programs can interact with it. REST is an architectural pattern that will guide us in designing our API.
Typically, a program calling our API will be a user interface running in a browser, which we will implement in the next chapter. It could also be another backend application, which could be from another program, and so on.
In this chapter, we will cover the following topics:
- REST principles
- Implementing the API with persistence
- Swagger
- Deploying on Heroku