-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide documentation for this new module
- Loading branch information
1 parent
661ee5d
commit 38febab
Showing
5 changed files
with
49 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
layout: docs | ||
title: memeid4s-tapir | ||
permalink: docs/memeid4s_tapir/ | ||
--- | ||
|
||
##### Tapir | ||
|
||
```scala | ||
libraryDependencies += "com.47deg" %% "memeid4s-tapir" % "@VERSION@" | ||
``` | ||
|
||
The [Tapir](https://tapir.softwaremill.com/en/latest/) integration provides implicit instances for `Codec[UUID]` and `Schema[UUID]`, which allow using `UUID` as | ||
type for query/path params or headers in endpoints. As well as enriching documentation when a `UUID` field is used. | ||
|
||
```scala mdoc:silent | ||
import memeid4s.tapir.implicits._ | ||
|
||
import sttp.tapir._ | ||
|
||
endpoint.get.in("hello" / path[UUID]) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters