Class JsonTesterResource

java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.rest.resources.tools.JsonTesterResource

@Path("/tools/json_tester") @Produces("application/json") public class JsonTesterResource extends RestResource
  • Constructor Details

    • JsonTesterResource

      public JsonTesterResource()
  • Method Details

    • get

      @GET @Timed public JsonTesterResponse get(@QueryParam("string") @NotEmpty @NotEmpty String string, @QueryParam("flatten") @DefaultValue("false") boolean flatten, @QueryParam("list_separator") @NotEmpty @NotEmpty String listSeparator, @QueryParam("key_separator") @NotEmpty @NotEmpty String keySeparator, @QueryParam("replace_key_whitespace") boolean replaceKeyWhitespace, @QueryParam("key_whitespace_replacement") String keyWhitespaceReplacement, @QueryParam("key_prefix") String keyPrefix, @QueryParam("kv_separator") @NotEmpty @NotEmpty String kvSeparator)
    • post

      @POST @Timed @Consumes("application/json") public JsonTesterResponse post(@Valid @NotNull @Valid @NotNull JsonTestRequest r)