forked from jooby-project/jooby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathC3835Jakarta.java
More file actions
33 lines (29 loc) · 795 Bytes
/
C3835Jakarta.java
File metadata and controls
33 lines (29 loc) · 795 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
/*
* Jooby https://jooby.io
* Apache License Version 2.0 https://jooby.io/LICENSE.txt
* Copyright 2014 Edgar Espina
*/
package issues.i3835;
import jakarta.ws.rs.DefaultValue;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.QueryParam;
import java.util.List;
import java.util.Map;
@Path("/3835")
public class C3835Jakarta {
/**
* Search/scan index.
*
* @param q Search string. Defaults to <code>*</code>
* @return Search result.
*/
@GET
public Map<String, Object> search(
@QueryParam("q") @DefaultValue("*") String q,
@QueryParam("pageSize") @DefaultValue("20") int pageSize,
@QueryParam("page") @DefaultValue("1") int page,
@QueryParam("options") @DefaultValue("--a") List<String> options) {
return null;
}
}