53 The quiz application: Part 2
In this capstone, you will
- Lazily evaluate side effects using the type
IO
- Define an HTTP API to send and receive requests using
http4s
- Serialize and deserialize HTTP responses in JSON format using circe
- Write tests to assert that your business logic is correct
In this capstone, you’ll complete the quiz application you started in unit 7 by defining its service and API layers. In particular, you’ll implement a server that offers its users an HTTP API to perform the following operations:
-
Inform about the status of your application.
-
Display a list of categories a user can choose.
-
Generate a quiz by randomly choosing 10 questions for a given category.
-
Calculate the quiz score based on the received answers. ...
Get Get Programming with Scala now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.