ArchiSteamFarm/IPC/Controllers/Api/GitHubController.cs
/// <summary>
///     Fetches the most recent GitHub release of ASF project.
/// </summary>
/// <remarks>
///     This is internal API being utilizied by our ASF-ui IPC frontend. You should not depend on existence of any /Api/WWW endpoints as they can disappear and change anytime.
/// </remarks>
Fetches the most recent GitHub release of ASF project.
Fetches the most recent GitHub release of ASF project .
[HttpGet("Release")]
	[ProducesResponseType(typeof(GenericResponse<GitHubReleaseResponse>), (int) HttpStatusCode.OK)]
	[ProducesResponseType(typeof(GenericResponse), (int) HttpStatusCode.ServiceUnavailable)]
	public async Task<ActionResult<GenericResponse>> GitHubReleaseGet() {
		GitHub.ReleaseResponse? releaseResponse = await GitHub.GetLatestRelease(false).ConfigureAwait(false);
		return releaseResponse != null ? Ok(new GenericResponse<GitHubReleaseResponse>(new GitHubReleaseResponse(releaseResponse))) : StatusCode((int) HttpStatusCode.ServiceUnavailable, new GenericResponse(false, string.Format(CultureInfo.CurrentCulture, Strings.ErrorRequestFailedTooManyTimes, WebBrowser.MaxTries)));
	}
[ HttpGet ( " " ) ] [ ProducesResponseType ( typeof ( GenericResponse < GitHubReleaseResponse > ) , ( int ) HttpStatusCode . OK ) ] [ ProducesResponseType ( typeof ( GenericResponse ) , ( int ) HttpStatusCode . ServiceUnavailable ) ] public async Task < ActionResult < GenericResponse > > GitHubReleaseGet ( ) { GitHub . ReleaseResponse ? releaseResponse = await GitHub . GetLatestRelease ( false ) . ConfigureAwait ( false ) ; return releaseResponse != null ? Ok ( new GenericResponse < GitHubReleaseResponse > ( new GitHubReleaseResponse ( releaseResponse ) ) ) : StatusCode ( ( int ) HttpStatusCode . ServiceUnavailable , new GenericResponse ( false , string . Format ( CultureInfo . CurrentCulture , Strings . ErrorRequestFailedTooManyTimes , WebBrowser . MaxTries ) ) ) ; }
Fetches the most recent GitHub release of ASF project.
Fetches the most recent GitHub release of ASF project .
remarks
This is internal API being utilizied by our ASF-ui IPC frontend. You should not depend on existence of any /Api/WWW endpoints as they can disappear and change anytime.
This is internal API being utilizied by our ASF - ui IPC frontend . You should not depend on existence of any / Api / WWW endpoints as they can disappear and change anytime .