Package lumis.service.formbuilder
Class FormBuilderResource
- java.lang.Object
-
- lumis.service.formbuilder.FormBuilderResource
-
@Path("/lumis/service/formbuilder/rest/forms/{formId:[A-F0-9]{32}}/answers") public class FormBuilderResource extends java.lang.Object
Form builder related operations.- Since:
- 8.2.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description FormBuilderResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
getAnswersReport(@NotNull java.lang.String formId)
Returns the answers report of the given form.void
postForm(java.lang.String formId, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> formParameters)
-
-
-
Method Detail
-
getAnswersReport
@GET @Path("/report.csv") @Produces("text/csv") public javax.ws.rs.core.Response getAnswersReport(@PathParam("formId") @NotNull @NotNull java.lang.String formId) throws java.lang.Exception
Returns the answers report of the given form.- Parameters:
formId
- the form identifier.- Returns:
- the answers report of the given form.
- Throws:
java.lang.Exception
- Since:
- 8.2.0
-
postForm
@POST @Consumes("application/x-www-form-urlencoded") @Produces("application/json") public void postForm(@PathParam("formId") java.lang.String formId, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> formParameters) throws PortalException, org.json.simple.parser.ParseException
- Throws:
PortalException
org.json.simple.parser.ParseException
-
-