Class FormResource

java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.form.impl.resources.FormResource
All Implemented Interfaces:
RestResource

@Path("/forms/{name}") public class FormResource extends AbstractRestResource
This resource provides a single form.

Resource is mapped to "/forms/{name}".

  • Constructor Details

  • Method Details

    • getForm

      @GET @Deprecated(forRemoval=true) @Produces("application/json") public FormBean getForm(@PathParam("name") String name, @QueryParam("_display") boolean computeDisplays)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getForm

      @GET @Path("{scope: (?!.*(search-fields))[^/]+ }") @Produces("application/json") public FormBean getForm(@PathParam("name") String baseName, @PathParam("scope") String scope, @QueryParam("_display") boolean computeDisplays)
    • setSearchFormFields

      @POST @Path("/search-fields") @Consumes("application/json") public jakarta.ws.rs.core.Response setSearchFormFields(@PathParam("name") String baseName, SearchFormFieldsBean searchFormFieldsBean)
    • resetSearchFormFields

      @POST @Path("/search-fields/reset") public jakarta.ws.rs.core.Response resetSearchFormFields(@PathParam("name") String baseName)