io.quarkus.code.service.GitHubOAuthClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of code-quarkus Show documentation
Show all versions of code-quarkus Show documentation
Customize a Web Interface to generate Quarkus starter projects.
package io.quarkus.code.service;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import jakarta.ws.rs.*;
import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.MultivaluedMap;
@Path("/login/oauth")
@RegisterRestClient(baseUri = "https://github.com")
public interface GitHubOAuthClient {
@POST
@Path("/access_token")
@Produces(MediaType.APPLICATION_FORM_URLENCODED)
MultivaluedMap getAccessToken(TokenParameter tokenParameter);
record TokenParameter(
String client_id,
String client_secret,
String code,
String state) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy