Create a simple client for joex in its api module

This client can be used within the backend app and later in other
modules. The `OJoex` object is replaced with a better implementation
where the http client is initialized once on app start.
This commit is contained in:
Eike Kettner
2020-03-03 23:07:49 +01:00
parent 42c59179b8
commit 9b28858d06
6 changed files with 97 additions and 65 deletions

View File

@ -260,7 +260,8 @@ val joexapi = project.in(file("modules/joexapi")).
settings(
name := "docspell-joexapi",
libraryDependencies ++=
Dependencies.circe,
Dependencies.circe ++
Dependencies.http4sClient,
openapiTargetLanguage := Language.Scala,
openapiPackage := Pkg("docspell.joexapi.model"),
openapiSpec := (Compile/resourceDirectory).value/"joex-openapi.yml"
@ -302,7 +303,7 @@ val backend = project.in(file("modules/backend")).
Dependencies.bcrypt ++
Dependencies.http4sClient ++
Dependencies.emil
).dependsOn(store)
).dependsOn(store, joexapi)
val webapp = project.in(file("modules/webapp")).
disablePlugins(RevolverPlugin).