Annotation Interface Delete


Annotation that can be applied to method to signify the method receives a HttpMethod.DELETE.
Since:
1.0
  • Element Details

    • value

      @AliasFor(annotation=HttpMethodMapping.class,member="value") @AliasFor(annotation=UriMapping.class,member="value") String value
      Returns:
      The URI of the DELETE route
      Default:
      "/"
    • uri

      @AliasFor(annotation=HttpMethodMapping.class,member="value") @AliasFor(annotation=UriMapping.class,member="value") String uri
      Returns:
      The URI of the DELETE route
      Default:
      "/"
    • uris

      @AliasFor(annotation=HttpMethodMapping.class,member="uris") @AliasFor(annotation=UriMapping.class,member="uris") String[] uris
      Only to be used in the context of a server.
      Returns:
      The URIs of the DELETE route
      Default:
      {"/"}
    • consumes

      @AliasFor(annotation=Consumes.class, member="value") String[] consumes
      Returns:
      The default consumes, otherwise override from controller
      Default:
      {}
    • produces

      @AliasFor(annotation=Produces.class, member="value") String[] produces
      Returns:
      The default produces, otherwise override from controller
      Default:
      {}
    • processes

      @AliasFor(annotation=Produces.class,member="value") @AliasFor(annotation=Consumes.class,member="value") String[] processes
      Shortcut that allows setting both the consumes() and produces() settings to the same media type.
      Returns:
      The media type this method processes
      Default:
      {}
    • single

      @AliasFor(annotation=Produces.class,member="single") @AliasFor(annotation=Consumes.class,member="single") @AliasFor(annotation=io.micronaut.core.async.annotation.SingleResult.class,member="value") boolean single
      Shortcut that allows setting both the Consumes and Produces single settings.
      Returns:
      Whether a single or multiple items are produced/consumed
      Default:
      false