Interface GithubService
-
public interface GithubService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description retrofit2.Call<License>
getLicense(java.lang.String url)
default retrofit2.Call<Repo>
getRepository(java.lang.String slug)
retrofit2.Call<Repo>
getRepository(java.lang.String owner, java.lang.String repo)
retrofit2.Call<User>
getUser(java.lang.String user)
retrofit2.Call<UploadSnapshotResponse>
uploadDependencySnapshot(java.lang.String owner, java.lang.String repo, Snapshot snapshot)
-
-
-
Method Detail
-
getRepository
default retrofit2.Call<Repo> getRepository(java.lang.String slug)
-
getRepository
@GET("repos/{owner}/{repo}") retrofit2.Call<Repo> getRepository(@Path("owner") java.lang.String owner, @Path("repo") java.lang.String repo)
-
getUser
@GET("users/{user}") retrofit2.Call<User> getUser(@Path("user") java.lang.String user)
-
getLicense
@GET retrofit2.Call<License> getLicense(@Url java.lang.String url)
-
uploadDependencySnapshot
@POST("repos/{owner}/{repo}/dependency-graph/snapshots") retrofit2.Call<UploadSnapshotResponse> uploadDependencySnapshot(@Path("owner") java.lang.String owner, @Path("repo") java.lang.String repo, @Body Snapshot snapshot)
-
-