Loading app/src/main/java/foundation/e/apps/data/gitlab/GitLabReleaseInfoApi.kt +15 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package foundation.e.apps.data.gitlab import foundation.e.apps.data.gitlab.models.GitLabReleaseInfo import foundation.e.apps.data.gitlab.models.SystemAppInfo import retrofit2.Response import retrofit2.http.GET import retrofit2.http.Path Loading @@ -37,4 +38,18 @@ interface GitLabReleaseInfoApi { @Path("projectId") projectId: Int, ): Response<List<GitLabReleaseInfo>> @GET("{projectId}/releases/{gitlabTag}/downloads/json/{releaseType}.json") suspend fun getSystemAppInfoByTag( @Path("projectId") projectId: Int, @Path("gitlabTag") gitlabTag: String, @Path("releaseType") releaseType: String, ): Response<SystemAppInfo> @GET("{projectId}/releases/permalink/latest/downloads/json/{releaseType}.json") suspend fun getLatestSystemAppInfo( @Path("projectId") projectId: Int, @Path("releaseType") releaseType: String, ): Response<SystemAppInfo> } Loading
app/src/main/java/foundation/e/apps/data/gitlab/GitLabReleaseInfoApi.kt +15 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package foundation.e.apps.data.gitlab import foundation.e.apps.data.gitlab.models.GitLabReleaseInfo import foundation.e.apps.data.gitlab.models.SystemAppInfo import retrofit2.Response import retrofit2.http.GET import retrofit2.http.Path Loading @@ -37,4 +38,18 @@ interface GitLabReleaseInfoApi { @Path("projectId") projectId: Int, ): Response<List<GitLabReleaseInfo>> @GET("{projectId}/releases/{gitlabTag}/downloads/json/{releaseType}.json") suspend fun getSystemAppInfoByTag( @Path("projectId") projectId: Int, @Path("gitlabTag") gitlabTag: String, @Path("releaseType") releaseType: String, ): Response<SystemAppInfo> @GET("{projectId}/releases/permalink/latest/downloads/json/{releaseType}.json") suspend fun getLatestSystemAppInfo( @Path("projectId") projectId: Int, @Path("releaseType") releaseType: String, ): Response<SystemAppInfo> }