Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Playing with tapirs Scala Vienna UserGroup
Search
Michele Vigilante
November 21, 2019
Programming
23
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Playing with tapirs Scala Vienna UserGroup
A presentation about the tapir library from softwaremill
Michele Vigilante
November 21, 2019
Transcript
10 slides
tAPIr Playing with Tapirs Michele Vigilante @_zZKato: Twitter
Agenda • Conventional API definitions • What is tapir •
Why tapir • Inputs and Outputs • Capabilities • Live Demo - Customer Application
Conventional Endpoint definitions • Routes file ◦ No type safety
◦ Difficult to maintain • Spring annotations ◦ limited type safety ◦ **magic**
What is Tapir? • tapir -> Typed API descRiptions •
created by Adam Warski from Softwaremill • define HTTP endpoints as Scala values • gain for free via interpretation ◦ [framework] Route ◦ OpenAPI documentation ◦ sttp API client
Supported frameworks • akka-http • finatra • http4s • playframework
(Soon™) • BYOI -> bring your own interpreter
Why tapir • Full type safety • No magic, just
simple code • framework agnostic • free server, client and docs • very “ergonomic”
Inputs and Outputs Endpoint[I, E, O, _] tapir Endpoint type
I Inputs E Error Outputs O Outputs
Capabilities • Custom Types (provided Codec) • Input/Output validation •
Authentication -> bearer token / basic / OAuth2 • Payload -> JSON / URL-encoded Forms / Multipart Forms etc. • Streaming
Live Demo
Q & A Thanks for your attention! • Links ◦
https://www.firstbird.com/en/ ◦ https://tapir-scala.readthedocs.io/en/latest/index.html ◦ https://github.com/softwaremill/tapir ◦ https://github.com/zZKato/tapir-live-demo-scala-usergroup
Other Decks in Programming
See All in Programming
imagewebp()の向こう側: WebPはなぜ JPEG・PNGより軽いのか
yuzneri
0
160
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
280
AppFunctionsの内部実装を紐解く
hiroaki404
1
130
Growing PicoRuby's Ecosystem on ESP32
yuuu
2
150
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
490
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
360
Canvas 2D Context Next
petamoriken
0
750
LLM 101
dalinaum
0
550
祈るテストから、探索するテストへ 〜Lincheckではじめる並行処理テスト〜
yyh_gl
0
430
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
240
Proxmox x Talos Linux x Terraform で実現するなんかいい感じの Kubernetes クラスタ / A Sleek Kubernetes Cluster Powered by Proxmox, Talos Linux, and Terraform
nnaka2992
0
320
ローカルLLMの基本と近況 2611 / Local LLM basics and recent situation 2611
kishida
3
670
Featured
See All Featured
A Tale of Four Properties
chriscoyier
163
24k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
590
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
490
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.3k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Darren the Foodie - Storyboard
khoart
PRO
5
4.1k
The browser strikes back
jonoalderson
0
2k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
How to Talk to Developers About Accessibility
jct
2
630
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
1k
My Coaching Mixtape
mlcsv
0
400
A designer walks into a library…
pauljervisheath
211
25k