mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2023-12-13 20:50:18 +01:00
7fe583c816
optimize imports Merge branch 'master' into moveWebInteraceCalls-2-ownInterface Merge branch 'master' into moveWebInteraceCalls-2-ownInterface move WebInterface calls to own interface rename WEB api for getting PullDiff Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/338 Reviewed-by: M M Arif <mmarif@swatian.com>
18 lines
418 B
Java
18 lines
418 B
Java
package org.mian.gitnex.interfaces;
|
|
|
|
import okhttp3.ResponseBody;
|
|
import retrofit2.Call;
|
|
import retrofit2.http.GET;
|
|
import retrofit2.http.Path;
|
|
|
|
/**
|
|
* Author M M Arif
|
|
*/
|
|
|
|
public interface WebInterface {
|
|
|
|
@GET("{owner}/{repo}/pulls/{index}.diff") // get pull diff file contents
|
|
Call<ResponseBody> getPullDiffContent(@Path("owner") String owner, @Path("repo") String repo, @Path("index") String pullIndex);
|
|
|
|
}
|