Use new projects API
This commit is contained in:
parent
11bca4cf53
commit
8bf483b334
24 changed files with 141 additions and 222 deletions
11
Website/Data/IGitApi.cs
Normal file
11
Website/Data/IGitApi.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Website.Models.Git;
|
||||
|
||||
namespace Website.Data {
|
||||
public interface IGitApi {
|
||||
Task<IEnumerable<Repository>> GetRepositories(string user);
|
||||
Task<IEnumerable<Branch>> GetBranches(string user, string repository);
|
||||
Task<Commit> GetCommit(string user, string repository, string hash);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue