![JAR search and dependency download from the Maven repository](/logo.png)
org.example.Simple Maven / Gradle / Ivy
package org.example;
import io.avaje.http.api.*;
import java.net.URL;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;
@Client
@Path("moo")
public interface Simple {
// UUID goo, Boolean option,
@Get("{uid}/{date}")
HttpResponse byIdg(long uid, LocalDate date, @Header URL access, @QueryParam("my-dat") LocalDate dt);
@Get("{uid}/withParams")
HttpResponse withParams(long uid, @QueryParam Map params);
@Post("postFormWithParams")
void postFormWithParams(long uid, @FormParam Map frmParams, @Header Map headers, @QueryParam Map qparams);
@Post("post3")
void post3(long uid, @Header String xHead, @Header("a-b") String ab);
@Get("users/{user}/repos")
List listRepos(String user, String other);
@Post
Id save(Repo bean);
@Post("/register")
@Form
void register(MyForm myForm);
@Post("other")
@Form
void registerOther(String myName, String email);
@Post
HttpResponse postFile(Path file);
@Post("{oid}")
HttpResponse postRaw(String oid, HttpRequest.BodyPublisher body, String myParam, String other);
class Id {
public long id;
}
class MyForm {
String name;
String email;
boolean active;
int notPublic;
@Header
public String bafHead;
@QueryParam("my-parm")
String mparam;
public String getMparam() {
return mparam;
}
public String getName() {
return name;
}
public boolean isActive4() {
return active;
}
public boolean isActive() {
return active;
}
public String email() {
return email;
}
public void setName(String name) {
this.name = name;
}
public void setEmail(String email) {
this.email = email;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy