Skip to content

Commit

Permalink
Update scaladoc
Browse files Browse the repository at this point in the history
  • Loading branch information
IainHull committed Oct 30, 2013
1 parent 9a573f4 commit 4e7ed26
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/main/scala/org/iainhull/resttest/Dsl.scala
Expand Up @@ -43,7 +43,10 @@ import java.net.URI
* {{{
* GET url "http://api.rest.org/person"
* }}}
* creates a `RequestBuilder` with the method and url properties set.
* is the same as
* {{{
* RequestBuilder().withMethod(GET).withUrl("http://api.rest.org/person")
* }}}
*
* The `RequestBuilder` DSL also supports default values passed implicitly into expressions,
* for example:
Expand All @@ -57,7 +60,7 @@ import java.net.URI
* == Executing a Request ==
*
* There are three ways to execute a request: [[RichRequestBuilder]]`.execute`, [[RichResponse]]`.returning`,
* [[RichRequestBuilder]]`.asserting`.
* [[RichRequestBuilder]]`.asserting`, these can all be applied to `RequestBuilder` instances.
*
* The `execute` method executes the request with the implicit [[Api.Driver]] and returns the `Response`.
* {{{
Expand All @@ -67,8 +70,8 @@ import java.net.URI
* The `returning` method executes the request like the `execute` method, except it applies one or more
* [[Extractor]]s to the `Response` to return only the extracted information.
* {{{
* val code1 = GET url "http://api.rest.org/person" returning (statusCode)
* val (code2, people) = GET url "http://api.rest.org/person" returning (statusCode, jsonBodyAsList[Person])
* val code1 = GET url "http://api.rest.org/person" returning (StatusCode)
* val (code2, people) = GET url "http://api.rest.org/person" returning (StatusCode, jsonBodyAsList[Person])
* }}}
*
* The `asserting` method executes the request like the `execute` method, except it verifies the specified
Expand Down

0 comments on commit 4e7ed26

Please sign in to comment.