routineer


License

License

GroupId

GroupId

com.github.mvv.routineer
ArtifactId

ArtifactId

routineer_2.12
Last Version

Last Version

0.2-M2
Release Date

Release Date

Type

Type

jar
Description

Description

routineer
routineer
Project URL

Project URL

https://github.com/mvv/routineer
Project Organization

Project Organization

com.github.mvv.routineer
Source Code Management

Source Code Management

https://github.com/mvv/routineer

Download routineer_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.mvv.routineer/routineer_2.12/ -->
<dependency>
    <groupId>com.github.mvv.routineer</groupId>
    <artifactId>routineer_2.12</artifactId>
    <version>0.2-M2</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.mvv.routineer/routineer_2.12/
implementation 'com.github.mvv.routineer:routineer_2.12:0.2-M2'
// https://jarcasting.com/artifacts/com.github.mvv.routineer/routineer_2.12/
implementation ("com.github.mvv.routineer:routineer_2.12:0.2-M2")
'com.github.mvv.routineer:routineer_2.12:jar:0.2-M2'
<dependency org="com.github.mvv.routineer" name="routineer_2.12" rev="0.2-M2">
  <artifact name="routineer_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.mvv.routineer', module='routineer_2.12', version='0.2-M2')
)
libraryDependencies += "com.github.mvv.routineer" % "routineer_2.12" % "0.2-M2"
[com.github.mvv.routineer/routineer_2.12 "0.2-M2"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.10

test (1)

Group / Artifact Type Version
org.specs2 : specs2-core_2.12 jar 4.7.1

Project Modules

There are no modules declared in this project.

Routineer

Routineer is a Scala library that provides an internal DSL for declaring HTTP routes. Routes are constructed from strings and patterns and the type of the handling function is automatically inferred:

get("prefix" /> * /> "middle" /> (IntP >>> PositiveP[Int])) {
    (req // Your request type,
     str // Inferred to be a String,
     i   // Inferred to be an Int) =>
  ...
}

Installation

Automatic

Routineer artifacts routineer and routineer-scalaz are published at Scala-Tools.org repository with groupId com.github.mvv.routineer. Add the following lines to your pom.xml if you are using Maven:

<dependency>
  <groupId>com.github.mvv.routineer</groupId>
  <artifactId>routineer_YOUR-SCALA-VERSION</artifactId>
  <version>0.1.2</version>
</dependency>

Or add this line to your build file if you are using Simple Build Tool:

libraryDependencies += "com.github.mvv.routineer" %% "routineer" % "0.1.2"

From source

Install Simple Build Tool, run

$ sbt update publish-local publish-local-maven

If you plan to use Routineer with Scalaz, run

$ sbt "project routineer-scalaz" update publish-local publish-local-maven

Usage

There is no documentation at the moment, look at the example

Versions

Version
0.2-M2