Skip to content

Commit 0fbc7a6

Browse files
committed
Add custom JAX-RS @query HTTP method annotation
1 parent 33b98ca commit 0fbc7a6

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

  • src/main/java/expert/os/demos/travel/infrastructure
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package expert.os.demos.travel.infrastructure;
2+
3+
import jakarta.ws.rs.HttpMethod;
4+
5+
import java.lang.annotation.ElementType;
6+
import java.lang.annotation.Retention;
7+
import java.lang.annotation.RetentionPolicy;
8+
import java.lang.annotation.Target;
9+
10+
@Target({ElementType.METHOD})
11+
@Retention(RetentionPolicy.RUNTIME)
12+
@HttpMethod("QUERY")
13+
public @interface QUERY {
14+
15+
}
16+

0 commit comments

Comments
 (0)