001package io.avaje.http.api;
002
003import java.lang.annotation.Retention;
004import java.lang.annotation.Target;
005
006import static java.lang.annotation.ElementType.METHOD;
007import static java.lang.annotation.RetentionPolicy.RUNTIME;
008
009/**
010 * Marks a method that handles HTTP DELETE requests.
011 *
012 * <pre>{@code
013 *
014 *   @Delete(":id")
015 *   void delete(long id) {
016 *
017 *     ...
018 *   }
019 *
020 * }</pre>
021 */
022@Target(value=METHOD)
023@Retention(value=RUNTIME)
024@HttpMethod(value="DELETE")
025public @interface Delete {
026
027  /**
028   * Specify the path.
029   */
030  String value() default "";
031}