-
-
Notifications
You must be signed in to change notification settings - Fork 200
Expand file tree
/
Copy pathC3761Jakarta.java
More file actions
41 lines (34 loc) · 964 Bytes
/
C3761Jakarta.java
File metadata and controls
41 lines (34 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Jooby https://jooby.io
* Apache License Version 2.0 https://jooby.io/LICENSE.txt
* Copyright 2014 Edgar Espina
*/
package tests.i3761;
import io.jooby.annotation.GET;
import io.jooby.annotation.Path;
import jakarta.ws.rs.DefaultValue;
import jakarta.ws.rs.FormParam;
import jakarta.ws.rs.QueryParam;
@Path("/3761")
public class C3761Jakarta {
@GET("/number")
public int number(@QueryParam("num") @DefaultValue("5") int num) {
return num;
}
@GET("/unset")
public String unset(@QueryParam("unset") String unset) {
return unset;
}
@GET("/emptySet")
public String emptySet(@QueryParam("emptySet") @DefaultValue("") String emptySet) {
return emptySet;
}
@GET("/stringVal")
public String string(@QueryParam("stringVal") @DefaultValue("Hello") String stringVal) {
return stringVal;
}
@GET("/boolVal")
public boolean bool(@FormParam("boolVal") @DefaultValue("false") boolean boolVal) {
return boolVal;
}
}