use of org.molgenis.data.rest.EntityTypeRequest in project molgenis by molgenis.
the class RestControllerV1APIIT method testRetrieveEntityAttributeMetaPost.
@Test
public void testRetrieveEntityAttributeMetaPost() {
ValidatableResponse response = given().log().all().header(X_MOLGENIS_TOKEN, testUserToken).contentType(APPLICATION_JSON).body(new EntityTypeRequest()).when().post(API_V1 + "V1_API_TypeTestRefAPIV1/meta/value?_method=GET").then().log().all();
validateRetrieveEntityAttributeMeta(response);
}
use of org.molgenis.data.rest.EntityTypeRequest in project molgenis by molgenis.
the class RestControllerV1APIIT method testGetEntityTypePost.
@Test
public void testGetEntityTypePost() {
ValidatableResponse response = given().log().all().header(X_MOLGENIS_TOKEN, testUserToken).contentType(APPLICATION_JSON).body(new EntityTypeRequest()).when().post(API_V1 + "V1_API_TypeTestRefAPIV1/meta?_method=GET").then().log().all();
validateGetEntityType(response);
}
use of org.molgenis.data.rest.EntityTypeRequest in project molgenis by molgenis.
the class RestControllerV1APIIT method testRetrieveEntityPost.
@Test
public void testRetrieveEntityPost() {
ValidatableResponse response = given().log().all().header(X_MOLGENIS_TOKEN, testUserToken).contentType(APPLICATION_JSON).body(new EntityTypeRequest()).when().post(API_V1 + "V1_API_TypeTestRefAPIV1/ref1?_method=GET").then().log().all();
validateRetrieveEntity(response);
}
Aggregations