@RemoteMethod(method=GET, path="/pet/findByTags") @Deprecated public Collection<Pet> findPetsByTags( @Query( name="tags", description="Tags to filter by", required=true, example="['tag1','tag2']" ) String[] tags ) throws InvalidTag, NotAcceptable;
@Query("Q") public static class SB03 extends LinkedList<String> { private static final long serialVersionUID = 1L; } @RestMethod
@RemoteMethod(method=GET, path="/pet/findByTags") @Deprecated public Collection<Pet> findPetsByTags( @Query( name="tags", description="Tags to filter by", required=true, example="['tag1','tag2']" ) String[] tags ) throws InvalidTag, NotAcceptable;
@RestMethod(name=GET, path="/queryIfNE1") public String queryIfNE1( @Query("a") String a ) throws Exception { assertEquals("foo", a); return "OK"; }
@RestMethod(name=GET,path="/path/{foo}/query") public Foo doFoo(@Query("foo") Foo foo) { return null; } }
@RestMethod(name=GET,path="/path/{foo}/query") public Foo doFoo(@Query("foo") Foo foo) { return null; } }
@RestMethod public Object c05(@Query(value="x",collectionFormat="multi",items=@Items(format="uon")) C01[] x) { return x; } @RestMethod
@RestMethod(name=PUT, path="/setParameterToInvalidTypes/{a1}") public String b07(@Query("p1") int t1, @Path("a1") int a1, @Header("h1") int h1) { return "OK"; } }
@RestMethod public String post(RestRequest req, @Query(name="p1",allowEmptyValue=true) String p1, @Query(name="p2",allowEmptyValue=true) int p2) throws Exception { RequestQuery q = req.getQuery(); return "p1=["+p1+","+req.getQuery().getString("p1")+","+q.get("p1", String.class)+"],p2=["+p2+","+q.getString("p2")+","+q.get("p2", int.class)+"]"; } }
@RestMethod(name=GET,path="/get2") public String get2(RestRequest req, @Query(name="p1",format="uon") String p1) throws Exception { RequestQuery q = req.getQuery(); return "p1=["+p1+","+req.getQuery().getString("p1")+","+q.get("p1", String.class)+"]"; } @RestMethod(name=POST,path="/post1")
@RestMethod(name=POST,path="/post1") public String post1(RestRequest req, @Query(name="p1") String p1) throws Exception { RequestQuery q = req.getQuery(); return "p1=["+p1+","+req.getQuery().getString("p1")+","+q.get("p1", String.class)+"]"; } @RestMethod(name=POST,path="/post2")
@RestMethod(name=POST,path="/post2") public String post2(RestRequest req, @Query(name="p1",format="uon") String p1) throws Exception { RequestQuery q = req.getQuery(); return "p1=["+p1+","+req.getQuery().getString("p1")+","+q.get("p1", String.class)+"]"; } }
@Body @Response @ResponseHeader @X public static class A01 { @Query @Header @FormData @Path @Schema public int f1; }