Master Scala Rest APIs in 3 Simple Concepts: Illustrated Guide with Tapir, http4s, and Circe! (2/3)

Full access on: LovinData — Simplified Full Stack Data Engineering

James JIANG
5 min readMar 3, 2024

--

All parts:

🎨 Mastering Circe & Tapir

JSON is the go-to format when it comes to friendly chats between clients and servers. For example, imagine a frontend Single Page Application (SPA) running on a user’s laptop communicating with a backend RestAPI. In this article, let’s dive into the joy of decoding JSON data from the outside world into Scala classes, or encoding Scala classes into JSON to share with the world. 🌐✨

Handling Requests

✨ Auto Derivation Magic!

Theory

“✨ Auto Derivation Magic!” is the technique used to effortlessly convert JSON to Scala case classes or vice versa, leveraging the attributes of the case classes as JSON fields. For…

--

--

James JIANG
James JIANG

Written by James JIANG

Dedicated 👨🏻‍💻 Full-Stack Data Engineer | Lead Data Engineer @ Datategy (🇫🇷) | 🎓 ENSEEIHT Alumni in Computer Science | Committed to data-driven solutions.

No responses yet