Skip to content

Commit

Permalink
clean up docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Sep 22, 2024
1 parent f156469 commit 372196e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Refresh.GameServer.Endpoints.ApiV3.OAuth;
public class DiscordOAuthEndpoints : EndpointGroup
{
[ApiV3Endpoint("oauth/discord/currentUserInformation")]
[DocSummary("Gets information about the current user's linked discord account")]
[DocSummary("Gets information about the current user's linked Discord account")]
[DocError(typeof(ApiNotSupportedError), ApiNotSupportedError.OAuthProviderDisabledErrorWhen)]
[DocError(typeof(ApiNotFoundError), ApiNotFoundError.OAuthTokenMissingErrorWhen)]
[DocResponseBody(typeof(ApiDiscordUserResponse))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
using Refresh.GameServer.Database;
using Refresh.GameServer.Endpoints.ApiV3.ApiTypes;
using Refresh.GameServer.Endpoints.ApiV3.ApiTypes.Errors;
using Refresh.GameServer.Endpoints.ApiV3.DataTypes.Response.OAuth.Discord;
using Refresh.GameServer.Services.OAuth;
using Refresh.GameServer.Services.OAuth.Clients;
using Refresh.GameServer.Time;
using Refresh.GameServer.Types.Data;
using Refresh.GameServer.Types.OAuth;
using Refresh.GameServer.Types.OAuth.Discord.Api;
using Refresh.GameServer.Types.OAuth.GitHub;
using Refresh.GameServer.Types.UserData;

Expand All @@ -19,10 +17,10 @@ namespace Refresh.GameServer.Endpoints.ApiV3.OAuth;
public class GitHubOAuthEndpoints : EndpointGroup
{
[ApiV3Endpoint("oauth/github/currentUserInformation")]
[DocSummary("Gets information about the current user's linked discord account")]
[DocSummary("Gets information about the current user's linked GitHub account")]
[DocError(typeof(ApiNotSupportedError), ApiNotSupportedError.OAuthProviderDisabledErrorWhen)]
[DocError(typeof(ApiNotFoundError), ApiNotFoundError.OAuthTokenMissingErrorWhen)]
[DocResponseBody(typeof(ApiDiscordUserResponse))]
[DocResponseBody(typeof(GitHubApiUserResponse))]
public ApiResponse<GitHubApiUserResponse> CurrentUserInformation(
RequestContext context,
GameDatabaseContext database,
Expand Down

0 comments on commit 372196e

Please sign in to comment.