1
1
Fork
You've already forked pfhais
0
Source code of the book Pure functional HTTP APIs in Scala including a chapter about upgrading to Scala 3. https://leanpub.com/pfhais
  • Scala 100%
2026年03月26日 14:37:55 +01:00
impure Fix typo 2022年03月03日 16:14:01 +01:00
jmeter Add some more Scala 2.13 benchmark results 2019年10月14日 16:59:31 +02:00
manuscript Change URL of repo to codeberg.org 2026年03月26日 14:37:55 +01:00
pure Add env variables for it test db 2022年02月23日 14:13:22 +01:00
tapir Add env variables for it test db 2022年02月23日 14:13:22 +01:00
tapir-scala-3 Fix swagger ui path 2022年03月03日 15:09:48 +01:00
.gitignore Update SBT and gitignore files 2021年10月18日 13:53:54 +02:00
.scalafix.conf Add scalafmt and scalafix settings 2019年06月04日 19:33:35 +02:00
.scalafmt.conf Impure 2019年08月24日 18:12:33 +02:00
.travis.yml Tapir 2019年10月09日 18:06:58 +02:00
AUTHORS.md Add AUTHORS file 2019年06月05日 17:07:08 +02:00
CODE_OF_CONDUCT.md Add Scala CoC 2019年06月04日 19:24:11 +02:00
CONTRIBUTING.md Add note about CC0 code snippets to CONTRIBUTING 2019年06月06日 10:21:29 +02:00
LICENSE Initial commit 2019年06月04日 19:15:58 +02:00
NOTICE Copyright notice 2019年06月04日 19:37:33 +02:00
README.md README 2021年10月18日 14:11:00 +02:00

Pure functional HTTP APIs in Scala

Build Status codecov

This repository contains the source code for the book "Pure functional HTTP APIs in Scala" which is available on Leanpub: https://leanpub.com/pfhais

While Leanpub is the recommended source the book is also available at:

An online course based upon the book was done by Educative: https://www.educative.io/courses/pure-functional-http-apis-scala

Structure

The folder manuscript contains the book source code and other resources like images. The service implementations are placed in the folders impure and pure. Within the folder tapir you can find the pure implementation which uses the tapir library for a typed API design.

Build Tooling

All project modules can be compiled, run and tested via sbt. Just open a terminal in the desired folder (e.g. pure) and start the sbt shell.

If you are using the IntelliJ IDEA development environment then you will need to install the Scala plugin for it. Afterwards you should be able to create IDEA projects by using the "Import Project" feature and point it to the desired folder (e.g. tapir).

Copyleft Notice

This book uses the Creative Commons Attribution ShareAlike 4.0 International (CC BY-SA 4.0) license. The code snippets in this book are licensed under CC0 which means you can use them without restriction. Excerpts from libraries maintain their license.