Campoie / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Specify servlet-mapping prefix #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
E.g. instead of doing:
expect().body(..).when().get("/servlet-mapping-name/getStuff");
expect().body(..).when().get("/servlet-mapping-name/getOtherStuff");

It would be nice to be able to do:
RestAssured.servletMapping = "/servlet-mapping-name"

and then:
expect().body(..).when().get("/getStuff");
expect().body(..).when().get("/getOtherStuff");

Original issue reported on code.google.com by johan.ha...@gmail.com on 13 Jan 2011 at 12:35

GoogleCodeExporter commented 9 years ago
Should probably be called "basePath": RestAssured.basePath = 
"/servlet-mapping-name". 

This can also allow for:
RestAssured.basePath = "http://somesite.com:80/servlet-mapping-name"

Original comment by johan.ha...@gmail.com on 16 Jan 2011 at 8:56

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 11 Feb 2011 at 12:53