arktekk / uri-template   1.1.0

GitHub

Scala implementation of RFC-6570 - http://tools.ietf.org/html/rfc6570

Scala versions: 2.13 2.12 2.11 2.10

URI Template

Build and Test Maven Central

Complete implementation of RFC-6570 (uri-templates) in Scala

Apache 2 Licenced

Example of usage (see the tests for more)

import uritemplate._
import Syntax._

val template = URITemplate("http://example.com/hello/{variable}")
val expanded = template expand ("variable" := "world")

expanded == "http://example.com/hello/world"

Dependencies

SBT:

libraryDependencies += "no.arktekk" %% "uri-template" % "1.1.0"

Maven:

<dependency>
  <groupId>no.arktekk</groupId>
  <artifactId>uri-template_${scalaVersion}</artifactId>
  <version>1.1</version>
</dependency>