public void documentCreateApplication()

in component-test/src/main/java/org/apache/fineract/cn/provisioner/application/ApplicationsApiDocumentation.java [83:100]


  public void documentCreateApplication ( ) throws Exception {
    final Application application = Fixture.getApplication();

    Gson gson = new Gson();
    this.mockMvc.perform(post("/applications")
            .accept(MediaType.APPLICATION_JSON_VALUE)
            .contentType(MediaType.APPLICATION_JSON_VALUE)
            .content(gson.toJson(application)))
            .andExpect(status().isAccepted())
            .andDo(document("document-create-application", preprocessRequest(prettyPrint()),
                    requestFields(
                            fieldWithPath("name").description("Application's name"),
                            fieldWithPath("description").description("Application's description"),
                            fieldWithPath("vendor").description("Application's vendor"),
                            fieldWithPath("homepage").description("Application's homepage")
                    )
            ));
  }