Interface CommandService

All Superinterfaces:
JAXRSService
All Known Implementing Classes:
CommandServiceImpl

@Path("commands") public interface CommandService extends JAXRSService
REST operations for commands.
  • Method Details

    • search

      @GET @Produces({"application/json","application/yaml","application/xml"}) PagedResult<CommandTO> search(@BeanParam CommandQuery query)
      Returns a paged list of all commands.
      Parameters:
      query - query conditions
      Returns:
      list of all commands.
    • read

      @GET @Path("{key}") @Produces({"application/json","application/yaml","application/xml"}) CommandTO read(@PathParam("key") String key)
      Returns the command for the given key, if found.
      Parameters:
      key - command key
      Returns:
      the command for the given key, if found
    • run

      @POST @Path("{key}") @Consumes({"application/json","application/yaml","application/xml"}) @Produces({"application/json","application/yaml","application/xml"}) CommandOutput run(CommandTO command)
      Runs the given command with the given arguments and returns the resulting output.
      Parameters:
      command - command to run, with arguments
      Returns:
      command output