At this point, we can run Play to see the result.
In the sbt shell tab of IntelliJ enter run followed by Enter as in the following:
The console should print:
--- (Running the application, auto-reloading is enabled) ---
[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Enter to stop and go back to the console...)
You can now safely browse http://localhost:9000/docs/swagger-ui/index.html?url=/v1/swagger.json, Play is going to compile all the files and after a while, the Swagger UI will appear, as follows:
Click on the Product and Cart API link. All of the endpoints are shown, as follows:
This looks good, but we have to add some information about our API. For example, if you click on the login endpoint, there is no way to test it with a body containing the username.