Tapir Tutorial - part 7: Integration with cats-effect & http4s | Adam Warski SoftwareMill

preview_player
Показать описание
Tapir: rapid development of self-documenting HTTP APIs

We've seen how to use Tapir in combination with direct-style, but one of Tapir's main strengths is that it integrates with virtually every Scala stack out there. This means, first and foremost, cats-effect for describing side-effecting computations, and http4s as an HTTP server. We'll include, of course, generating OpenAPI docs!

RESOURCES

CHAPTERS
00:00 Describing the demo endpoint
01:42 Purely functional server logic
03:26 Signature of the server logic
04:30 Adding the server logic
07:35 Exposing the endpoint
09:00 http4s server interpreter
11:00 Starting the server
15:40 Running & testing
16:23 Exposing OpenAPI documentation
20:00 More testing
20:40 Recap

ALL TUTORIALS PLAYLIST
Рекомендации по теме
Комментарии
Автор

An idea for another video: Can you show how to extend this application to have some dependency injection / context?

I understand this will not be “Tapir only” video, but it will help people bridge the gap between theoretical use of Tapir and a real world use of it

HelloForeignWorld