installation

Fintrospect is intentionally dependency-lite by design - other than Finagle, the core library itself only has a single non org.scala dependency.

To activate some optional features, additional dependencies may be required - these are shown in the subsequent sections depending on the use-case.

core

Add the following lines to build.sbt - the lib is hosted in Maven Central and JCenter:

resolvers += "JCenter" at "https://jcenter.bintray.com"
libraryDependencies += "io.fintrospect" %% "fintrospect-core" % "14.17.3"

message formats

For consuming request parameters  in a type-safe way or using the relevant HTTP response builders add the following:

Library Content-Type Additional SBT deps Builder Object
Argo application/json - Argo
Argonaut application/json "io.fintrospect" %% "fintrospect-argonaut" % "14.17.3" Argonaut
Circe application/json "io.fintrospect" %% "fintrospect-circe" % "14.17.3" Circe
GSON application/json "io.fintrospect" %% "fintrospect-gson" % "14.17.3" Gson
HTML text/html - Html
Jackson application/json "io.fintrospect" %% "fintrospect-jackson" % "14.17.3" Jackson
Json4S Native application/json "io.fintrospect" %% "fintrospect-json4s" % "14.17.3" Json4s
Json4sDoubleMode
Json4S Jackson application/json "io.fintrospect" %% "fintrospect-json4s" % "14.17.3" Json4sJackson
Json4sJacksonDoubleMode
MsgPack application/msgpack "io.fintrospect" %% "fintrospect-msgpack" % "14.17.3" MsgPack
Plain Text text/plain - PlainText
Play application/json "io.fintrospect" %% "fintrospect-play" % "14.17.3" Play
Spray application/json "io.fintrospect" %% "fintrospect-spray" % "14.17.3" Spray
XHTML application/xhtml+xml - XHtml
XML application/xml - Xml

templating

For utilising the templating engines listed below, add the following:

Templating Library Template filename suffix Additional SBT deps Templates object
Handlebars .hbs "io.fintrospect" %% "fintrospect-handlebars" % "14.17.3" HandlebarsTemplates
Mustache .mustache "io.fintrospect" %% "fintrospect-mustache" % "14.17.3" MustacheTemplates