Jiri Kremser
Jiri Kremser

Reputation: 12837

How to use REST client from Play framework without Play

I like the API from play framework for calling the RESTful API:

Is there any way to use this API in a regular Scala project (not the Play project). What dependencies should I add to build.sbt to make it work? I know there are other libraries for building clients for REST, but I would like to use this one.

Upvotes: 2

Views: 770

Answers (1)

vptheron
vptheron

Reputation: 7466

Just add a dependency to Play!:

"com.typesafe.play" % "play_2.10" % "2.2.1"

You don't have to follow the Play! project convention to use the WebService. I wish it was possible to add only the WebService part as a standalone library but I don't think it's possible.

Upvotes: 4

Related Questions