mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
495 B
14 lines
495 B
using ErsatzTV.Infrastructure.GitHub.Models; |
|
using Refit; |
|
|
|
namespace ErsatzTV.Infrastructure.GitHub; |
|
|
|
[Headers("Accept: application/vnd.github.v3+json", "User-Agent: ErsatzTV/ErsatzTV")] |
|
public interface IGitHubApi |
|
{ |
|
[Get("/repos/ErsatzTV/ErsatzTV/releases")] |
|
public Task<List<GitHubTag>> GetReleases(CancellationToken cancellationToken); |
|
|
|
[Get("/repos/ErsatzTV/ErsatzTV/releases/tags/{tag}")] |
|
public Task<GitHubTag> GetTag(string tag, CancellationToken cancellationToken); |
|
}
|
|
|