Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Commit

Permalink
[ISSUE#69] Fixed method type of search endpoint (#70)
Browse files Browse the repository at this point in the history
* [ISSUE#69] Fixed method type of search endpoint

Previous method type was GET, now changed to POST.
This enables sending a json payload along with the
request.

Signed-off-by: cbotek <[email protected]>

* Added Unit test for UserEntity

Signed-off-by: cbotek <[email protected]>

* Revert "Added Unit test for UserEntity"

This reverts commit 4ce7952c226294ac2ca5ed77ee74ea10a0a86cf1.
  • Loading branch information
cbotek authored and ignasi35 committed Apr 3, 2018
1 parent 82fe7ad commit 3d3e021
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.lightbend.lagom.scaladsl.api.transport.Method
trait SearchService extends Service {
override def descriptor: Descriptor =
named("search").withCalls(
restCall(Method.GET, "/api/search?pageNo&pageSize", search _)
restCall(Method.POST, "/api/search?pageNo&pageSize", search _)
).withAutoAcl(true)

def search(pageNo: Int, pageSize: Int): ServiceCall[SearchRequest, SearchResponse]
Expand Down

0 comments on commit 3d3e021

Please sign in to comment.