in component-test/src/main/java/org/apache/fineract/cn/provisioner/tenant/TenantApiDocumentation.java [119:153]
public void documentFindTenant ( ) throws Exception {
final Tenant mytenant = Fixture.getCompTestTenant();
provisioner.createTenant(mytenant);
this.mockMvc.perform(get("/tenants/" + mytenant.getIdentifier())
.accept(MediaType.APPLICATION_JSON_VALUE)
.contentType(MediaType.APPLICATION_JSON_VALUE))
.andExpect(status().isOk())
.andDo(document("document-find-tenant", preprocessResponse(prettyPrint()),
responseFields(
fieldWithPath("identifier").description("Tenant's Identifier"),
fieldWithPath("name").description("Tenant's name"),
fieldWithPath("description").description("Tenant's description"),
fieldWithPath("cassandraConnectionInfo").type("CassandraConnectionInfo").description("Tenant's Cassandra Connection Information +\n" +
" +\n" +
"*class* _CassandraConnectionInfo_ { +\n" +
" String clusterName; +\n" +
" String contactPoints; +\n" +
" String keyspace; +\n" +
" String replicationType; +\n" +
" String replicas; +\n" +
" } +"),
fieldWithPath("databaseConnectionInfo").type("_DatabaseConnectionInfo_").description("Tenant's Database Connection Information +\n" +
" +\n" +
"*class* _DatabaseConnectionInfo_ { +\n" +
" String driverClass; +\n" +
" String databaseName; +\n" +
" String host; +\n" +
" String port; +\n" +
" String user; +\n" +
" String password; +\n" +
" } +")
)
));
}