@Path(value="/system/inputs/{inputId}/staticfields") public class StaticFieldsResource extends RestResource
objectMapper, serverStatus, userService
Constructor and Description |
---|
StaticFieldsResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(String inputId,
CreateStaticFieldRequest csfr) |
void |
delete(String key,
String inputId) |
bytesToValueMap, checkPermission, checkPermission, getCurrentUser, getSubject, guessContentType, isPermitted, isPermitted, page, restrictToMaster, setPrettyPrint
@POST @Timed @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(@PathParam(value="inputId") String inputId, @NotNull CreateStaticFieldRequest csfr) throws NotFoundException, ValidationException
NotFoundException
ValidationException
@DELETE @Timed @Consumes(value="application/json") @Produces(value="application/json") @Path(value="/{key}") public void delete(@PathParam(value="key") String key, @PathParam(value="inputId") String inputId) throws NotFoundException
NotFoundException
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.