Skip to content

arktekk/uri-template

 
 

Repository files navigation

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>

Packages

No packages published

Languages

  • Scala 100.0%