mirror of
https://github.com/LORDBABUINO/stealth.git
synced 2026-04-27 08:00:00 -07:00
Feat: Backend commit
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
package org.backend.stealth.controller.request;
|
||||
|
||||
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
|
||||
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.QueryParam;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* To use it via injection.
|
||||
* <p>
|
||||
* {@code
|
||||
*
|
||||
* @Inject
|
||||
* @RestClient MyRemoteService myRemoteService;
|
||||
* <p>
|
||||
* public void doSomething() {
|
||||
* Set<MyRemoteService.Extension> restClientExtensions = myRemoteService.getExtensionsById("io.quarkus:quarkus-hibernate-validator");
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
@RegisterRestClient(baseUri = "https://stage.code.quarkus.io/api")
|
||||
public interface MyRemoteService {
|
||||
|
||||
@GET
|
||||
@Path("/extensions")
|
||||
Set<Extension> getExtensionsById(@QueryParam("id") String id);
|
||||
|
||||
class Extension {
|
||||
public String id;
|
||||
public String name;
|
||||
public String shortName;
|
||||
public List<String> keywords;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user