--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Request method: GETRequest path: http://serverip:port/baseurl/restcallProxy: <none>Request params: <none>Query params: <none>Form params: <none>Path params: <none>Multiparts: <none>Headers: Accept=*/* Content-Type=application/xml; charset=ISO-8859-1Cookies: <none>Body: <none> final StringWriter writer = new StringWriter(); final PrintStream captor = new PrintStream(new WriterOutputStream(writer));
/****************** Organization Model REST Calls ****************/
@BeforeClass public void setupMethod(){ RestAssured.config = config().logConfig(new LogConfig().enablePrettyPrinting(false)); }
/** * Use OrgModelService requests to get information about organization * models. */ public Response listVersions() {
Reporter.log("\nlistVersions");
Response rs = given() .config(config().logConfig(new LogConfig(captor, true))).log() .everything().urlEncodingEnabled(false).when() .get("REST_URL");
Reporter.log("\n" + rs.asString());
return rs; }
@Test public void listVersionsTest() {
Response rs = listVersions(); }listOrgModelVersions
Request method: GET Request path: http://BASE_URL/orgmodel/versions Proxy: <none> Request params: <none> Query params: <none> Form params: <none> Path params: <none> Multiparts: <none> Headers: Accept=*/* Cookies: <none> Body: <none>