Class JsonTesterResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.rest.resources.tools.JsonTesterResource
@RequiresAuthentication
@Path("/tools/json_tester")
@Produces("application/json")
public class JsonTesterResource
extends RestResource
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
-
Method Summary
Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
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)
-