public void documentCreateSMSConfiguration()

in component-test/src/main/java/org/apache/fineract/cn/notification/SmsApiDocumentation.java [73:91]


  public void documentCreateSMSConfiguration() throws Exception {
    final SMSConfiguration randomSMSConfiguration = DomainObjectGenerator.smsConfiguration();
  
    this.mockMvc.perform(post("/configuration/sms")
        .accept(MediaType.APPLICATION_JSON_VALUE)
        .contentType(MediaType.APPLICATION_JSON_VALUE)
        .content(gson.toJson(randomSMSConfiguration)))
        .andExpect(status().isCreated())
        .andDo(document("document-create-sms-configuration", preprocessRequest(prettyPrint()),
            requestFields(
                fieldWithPath("identifier").description("Configuration Id for SMS Gateway"),
                fieldWithPath("auth_token").description("SMS API authentication token"),
                fieldWithPath("account_sid").description("SMS API account SID"),
                fieldWithPath("sender_number").description("SMS API sender number"),
                fieldWithPath("state").description("The state of the Gateway" +
                    "\n ACTIVE for Gateway to be used" +
                    "\n DEACTIVATED for inactive gateways")
            )));
  }