public void documentCreateClient()

in component-test/src/main/java/org/apache/fineract/cn/provisioner/client/ClientsApiDocumentation.java [82:98]


  public void documentCreateClient ( ) throws Exception {
    final Client client = Fixture.getCompTestClient();

    Gson gson = new Gson();
    this.mockMvc.perform(post("/clients")
            .accept(MediaType.APPLICATION_JSON_VALUE)
            .contentType(MediaType.APPLICATION_JSON_VALUE)
            .content(gson.toJson(client)))
            .andExpect(status().isAccepted())
            .andDo(document("document-create-client", preprocessRequest(prettyPrint()),
                    requestFields(
                            fieldWithPath("name").description("Client's name"),
                            fieldWithPath("description").description("Client's description"),
                            fieldWithPath("redirectUri").description("Client's Redirect URI"),
                            fieldWithPath("vendor").description("Client's vendor"),
                            fieldWithPath("homepage").description("Client's Homepage"))));
  }