Tapir Tutorial - part 1: Hello, world! | Adam Warski SoftwareMill

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

How to start your adventure with Tapir? How can a functional programming language, such as Scala, benefit your daily work as a programmer? In the tutorial, we'll setup a simple project, and expose a single endpoint. You *should* try this at home :)

RESOURCES

CHAPTERS
00:00 Introduction
00:40 Basic tools: text editor, java, scala-cli
02:00 Adding dependencies
02:40 Defining our app's entrypoint, using "endpoint"
03:17 Endpoint inputs & outputs
04:00 Printing the endpoint description
04:40 Adding a query parameter
05:18 Endpoints as data structures
06:20 Adding server logic
08:14 Starting an HTTP server
09:00 Testing
09:40 Summary

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

Please continue this series n keep going, thanks a lot for the video

somasundaramvalliappan
Автор

Adam, great work! Already using tapir and it is such a lovely tool. It is making Scala world richer. The learning curve of the library is low but also allows for advanced usage. Having different options for servers, clients and almost built in Swagger UI integration makes writing HTTP API very simple. Thank you for such great set of libraries!

sevenxym
Автор

Tapir looks like pure programming kino; Thanks Warski! I aim to learn more about it in the future!

White_Door_
Автор

Great idea! I hope there are more video tutorials on Tapir 💡

HelloForeignWorld
Автор

I am planning to use this with zio http

jay-hinddoston
Автор

Why does your IntelliJ not show any code hint (i.e. the arguments of a method, the methods in a class ...)? I think IntelliJ already supports scala cli?
You can go at a faster pace and put more examples (at least, that's what I like. If I like it, thousands of Joe developers like me will like it too). For example (this is what I copy from Spring), how to make the query parameter optional, if the query parameter is missing, can I give it a default value, does tapir help converting the string value of a query parameter to another type that I specify, how to catch all the query parameters even when I don't declare all of them ...
If tapir can provide all the features Spring has, ... well I don't know what will happen then :)

avalagum
Автор

I dont get what this has to do with wielding a giant axe

Vexcenot
Автор

I would be interested of a series for tapir, but before that I'd suggest separating the microphone from the desk, or adding dampening for the microphone, as in this video your typing causes low bass sounds that make at least me nauseous. I wasn't able to watch anymore after you started working on the code :(

welcome to shbcf.ru