In the previous chapter, we added a new chat feature in our app using Akka. Our web application is close to the end. This chapter will add the REST API in our Play framework application.
We will also create a Scala client using the ws
library from the Play framework in order to call our REST API. Later in this chapter, we will add Swagger support and embed the Swagger UI in our app.
In this chapter, we will cover the following topics:
REST and API design
Creating our API with REST and JSON
Creating a Scala client
Adding validations
Adding back pressure
Adding Swagger support