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 POST requests.
011 *
012 * <pre>{@code
013 *
014 *  @Post
015 *  void save(Customer customer) {
016      ...
017 *  }
018 */
019@Target(value=METHOD)
020@Retention(value=RUNTIME)
021@HttpMethod(value="POST")
022public @interface Post {
023  String value() default "";
024}