I am trying to use this test to test my webservice:
"POST /phaseupdate" should {
"return status 200" in {
put("/phaseupdate", Map("filename" -> "test1", "entryaddress" -> "address 1","name" -> "starting","percentcomplete" -> "10")) {
status must_== 200
}
}
}
And the webservice definition is:
post("/phaseupdate/:filename/:entryaddress/:name/:percentcomplete") {
But I am getting a 404 error, so it appears the way I am passing the parameters is wrong.
What is the correct way to get this test to call my webservice?
UPDATE
So this works, so my definition of the service is not what I expected:
put("/phaseupdate/test1/address1/starting/10") {