Class SurveyApiResource

java.lang.Object
org.apache.fineract.infrastructure.survey.api.SurveyApiResource

@Path("/v1/survey") @Component public class SurveyApiResource extends Object
Created by Cieyou on 2/27/14.
  • Constructor Details

    • SurveyApiResource

      public SurveyApiResource()
  • Method Details

    • retrieveSurveys

      @GET @Consumes("application/json") @Produces("application/json") public String retrieveSurveys()
    • retrieveSurvey

      @GET @Path("{surveyName}") @Consumes("application/json") @Produces("application/json") public String retrieveSurvey(@PathParam("surveyName") String surveyName)
    • createDatatableEntry

      @POST @Path("{surveyName}/{apptableId}") @Consumes("application/json") @Produces("application/json") public String createDatatableEntry(@PathParam("surveyName") String datatable, @PathParam("apptableId") Long apptableId, String apiRequestBodyAsJson)
    • getClientSurveyOverview

      @GET @Path("{surveyName}/{clientId}") @Consumes("application/json") @Produces("application/json") public String getClientSurveyOverview(@PathParam("surveyName") String surveyName, @PathParam("clientId") Long clientId)
      FIXME Vishwas what does this API really do?
    • getSurveyEntry

      @GET @Path("{surveyName}/{clientId}/{entryId}") @Consumes("application/json") @Produces("application/json") public String getSurveyEntry(@PathParam("surveyName") String surveyName, @PathParam("clientId") Long clientId, @PathParam("entryId") Long entryId)
    • register

      @PUT @Path("register/{surveyName}/{apptable}") @Consumes("application/json") @Produces("application/json") public String register(@PathParam("surveyName") String datatable, @PathParam("apptable") String apptable, String apiRequestBodyAsJson)
    • deleteDatatableEntries

      @DELETE @Path("{surveyName}/{clientId}/{fulfilledId}") @Consumes("application/json") @Produces("application/json") public String deleteDatatableEntries(@PathParam("surveyName") String surveyName, @PathParam("clientId") Long clientId, @PathParam("fulfilledId") Long fulfilledId)