diff --git a/src/libs/Directory.Build.props b/src/libs/Directory.Build.props index bbb40d0258..3c5962a017 100644 --- a/src/libs/Directory.Build.props +++ b/src/libs/Directory.Build.props @@ -39,7 +39,7 @@ - 0.13.2 + 0.13.3 0.1 v dev diff --git a/src/libs/OpenApiGenerator.Core/Naming/Methods/MethodAndPathGenerator.cs b/src/libs/OpenApiGenerator.Core/Naming/Methods/MethodAndPathGenerator.cs index 6c9155a4f4..030b043575 100644 --- a/src/libs/OpenApiGenerator.Core/Naming/Methods/MethodAndPathGenerator.cs +++ b/src/libs/OpenApiGenerator.Core/Naming/Methods/MethodAndPathGenerator.cs @@ -22,6 +22,10 @@ public string TryGenerate(OpenApiOperation operation, string path, OperationType _ => throw new NotSupportedException($"OperationType {operationType} is not supported."), }; + path = path.StartsWith("/api", StringComparison.OrdinalIgnoreCase) ? path[4..] : path; + path = path.StartsWith("/v1", StringComparison.OrdinalIgnoreCase) ? path[3..] : path; + path = path.StartsWith("/api", StringComparison.OrdinalIgnoreCase) ? path[4..] : path; + return $"{prefix}{path.TrimStart('/').ToPropertyName().UseWordSeparator('/')}"; } } \ No newline at end of file diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.LoginClient.CreateApiV1Login.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.LoginClient.CreateLogin.g.verified.cs similarity index 89% rename from src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.LoginClient.CreateApiV1Login.g.verified.cs rename to src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.LoginClient.CreateLogin.g.verified.cs index dc066e33a1..60c43f0f9c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.LoginClient.CreateApiV1Login.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.LoginClient.CreateLogin.g.verified.cs @@ -1,4 +1,4 @@ -//HintName: G.LoginClient.CreateApiV1Login.g.cs +//HintName: G.LoginClient.CreateLogin.g.cs #nullable enable @@ -6,18 +6,18 @@ namespace G { public partial class LoginClient { - partial void PrepareCreateApiV1LoginArguments( + partial void PrepareCreateLoginArguments( global::System.Net.Http.HttpClient httpClient, global::G.LoginRequest request); - partial void PrepareCreateApiV1LoginRequest( + partial void PrepareCreateLoginRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::G.LoginRequest request); - partial void ProcessCreateApiV1LoginResponse( + partial void ProcessCreateLoginResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateApiV1LoginResponseContent( + partial void ProcessCreateLoginResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -28,7 +28,7 @@ partial void ProcessCreateApiV1LoginResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateApiV1LoginAsync( + public async global::System.Threading.Tasks.Task CreateLoginAsync( global::G.LoginRequest request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -36,7 +36,7 @@ partial void ProcessCreateApiV1LoginResponseContent( PrepareArguments( client: _httpClient); - PrepareCreateApiV1LoginArguments( + PrepareCreateLoginArguments( httpClient: _httpClient, request: request); @@ -52,7 +52,7 @@ partial void ProcessCreateApiV1LoginResponseContent( PrepareRequest( client: _httpClient, request: httpRequest); - PrepareCreateApiV1LoginRequest( + PrepareCreateLoginRequest( httpClient: _httpClient, httpRequestMessage: httpRequest, request: request); @@ -65,7 +65,7 @@ partial void ProcessCreateApiV1LoginResponseContent( ProcessResponse( client: _httpClient, response: response); - ProcessCreateApiV1LoginResponse( + ProcessCreateLoginResponse( httpClient: _httpClient, httpResponseMessage: response); @@ -75,7 +75,7 @@ partial void ProcessCreateApiV1LoginResponseContent( client: _httpClient, response: response, content: ref __content); - ProcessCreateApiV1LoginResponseContent( + ProcessCreateLoginResponseContent( httpClient: _httpClient, httpResponseMessage: response, content: ref __content); @@ -101,7 +101,7 @@ partial void ProcessCreateApiV1LoginResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateApiV1LoginAsync( + public async global::System.Threading.Tasks.Task CreateLoginAsync( string? username = default, string? rsaEncryptedPassword = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -112,7 +112,7 @@ partial void ProcessCreateApiV1LoginResponseContent( RsaEncryptedPassword = rsaEncryptedPassword, }; - return await CreateApiV1LoginAsync( + return await CreateLoginAsync( request: request, cancellationToken: cancellationToken).ConfigureAwait(false); } diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.LoginClient.GetApiV1Rsa.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.LoginClient.GetRsa.g.verified.cs similarity index 87% rename from src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.LoginClient.GetApiV1Rsa.g.verified.cs rename to src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.LoginClient.GetRsa.g.verified.cs index 21c9cbed91..ac03e531d2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.LoginClient.GetApiV1Rsa.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.LoginClient.GetRsa.g.verified.cs @@ -1,4 +1,4 @@ -//HintName: G.LoginClient.GetApiV1Rsa.g.cs +//HintName: G.LoginClient.GetRsa.g.cs #nullable enable @@ -6,16 +6,16 @@ namespace G { public partial class LoginClient { - partial void PrepareGetApiV1RsaArguments( + partial void PrepareGetRsaArguments( global::System.Net.Http.HttpClient httpClient); - partial void PrepareGetApiV1RsaRequest( + partial void PrepareGetRsaRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessGetApiV1RsaResponse( + partial void ProcessGetRsaResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetApiV1RsaResponseContent( + partial void ProcessGetRsaResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -25,12 +25,12 @@ partial void ProcessGetApiV1RsaResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetApiV1RsaAsync( + public async global::System.Threading.Tasks.Task GetRsaAsync( global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: _httpClient); - PrepareGetApiV1RsaArguments( + PrepareGetRsaArguments( httpClient: _httpClient); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -40,7 +40,7 @@ partial void ProcessGetApiV1RsaResponseContent( PrepareRequest( client: _httpClient, request: httpRequest); - PrepareGetApiV1RsaRequest( + PrepareGetRsaRequest( httpClient: _httpClient, httpRequestMessage: httpRequest); @@ -52,7 +52,7 @@ partial void ProcessGetApiV1RsaResponseContent( ProcessResponse( client: _httpClient, response: response); - ProcessGetApiV1RsaResponse( + ProcessGetRsaResponse( httpClient: _httpClient, httpResponseMessage: response); @@ -62,7 +62,7 @@ partial void ProcessGetApiV1RsaResponseContent( client: _httpClient, response: response, content: ref __content); - ProcessGetApiV1RsaResponseContent( + ProcessGetRsaResponseContent( httpClient: _httpClient, httpResponseMessage: response, content: ref __content); diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.UsersClient.GetApiV1Me.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.UsersClient.GetMe.g.verified.cs similarity index 87% rename from src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.UsersClient.GetApiV1Me.g.verified.cs rename to src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.UsersClient.GetMe.g.verified.cs index 516423e535..4d5b777f1f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.UsersClient.GetApiV1Me.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/NewtonsoftJson/_#G.UsersClient.GetMe.g.verified.cs @@ -1,4 +1,4 @@ -//HintName: G.UsersClient.GetApiV1Me.g.cs +//HintName: G.UsersClient.GetMe.g.cs #nullable enable @@ -6,18 +6,18 @@ namespace G { public partial class UsersClient { - partial void PrepareGetApiV1MeArguments( + partial void PrepareGetMeArguments( global::System.Net.Http.HttpClient httpClient, ref string token); - partial void PrepareGetApiV1MeRequest( + partial void PrepareGetMeRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string token); - partial void ProcessGetApiV1MeResponse( + partial void ProcessGetMeResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetApiV1MeResponseContent( + partial void ProcessGetMeResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -28,13 +28,13 @@ partial void ProcessGetApiV1MeResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetApiV1MeAsync( + public async global::System.Threading.Tasks.Task GetMeAsync( string token, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: _httpClient); - PrepareGetApiV1MeArguments( + PrepareGetMeArguments( httpClient: _httpClient, token: ref token); @@ -45,7 +45,7 @@ partial void ProcessGetApiV1MeResponseContent( PrepareRequest( client: _httpClient, request: httpRequest); - PrepareGetApiV1MeRequest( + PrepareGetMeRequest( httpClient: _httpClient, httpRequestMessage: httpRequest, token: token); @@ -58,7 +58,7 @@ partial void ProcessGetApiV1MeResponseContent( ProcessResponse( client: _httpClient, response: response); - ProcessGetApiV1MeResponse( + ProcessGetMeResponse( httpClient: _httpClient, httpResponseMessage: response); @@ -68,7 +68,7 @@ partial void ProcessGetApiV1MeResponseContent( client: _httpClient, response: response, content: ref __content); - ProcessGetApiV1MeResponseContent( + ProcessGetMeResponseContent( httpClient: _httpClient, httpResponseMessage: response, content: ref __content); diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.LoginClient.CreateApiV1Login.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.LoginClient.CreateLogin.g.verified.cs similarity index 89% rename from src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.LoginClient.CreateApiV1Login.g.verified.cs rename to src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.LoginClient.CreateLogin.g.verified.cs index 36d4c8d9d7..e2611307f1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.LoginClient.CreateApiV1Login.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.LoginClient.CreateLogin.g.verified.cs @@ -1,4 +1,4 @@ -//HintName: G.LoginClient.CreateApiV1Login.g.cs +//HintName: G.LoginClient.CreateLogin.g.cs #nullable enable @@ -6,18 +6,18 @@ namespace G { public partial class LoginClient { - partial void PrepareCreateApiV1LoginArguments( + partial void PrepareCreateLoginArguments( global::System.Net.Http.HttpClient httpClient, global::G.LoginRequest request); - partial void PrepareCreateApiV1LoginRequest( + partial void PrepareCreateLoginRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::G.LoginRequest request); - partial void ProcessCreateApiV1LoginResponse( + partial void ProcessCreateLoginResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateApiV1LoginResponseContent( + partial void ProcessCreateLoginResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -28,7 +28,7 @@ partial void ProcessCreateApiV1LoginResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateApiV1LoginAsync( + public async global::System.Threading.Tasks.Task CreateLoginAsync( global::G.LoginRequest request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -36,7 +36,7 @@ partial void ProcessCreateApiV1LoginResponseContent( PrepareArguments( client: _httpClient); - PrepareCreateApiV1LoginArguments( + PrepareCreateLoginArguments( httpClient: _httpClient, request: request); @@ -52,7 +52,7 @@ partial void ProcessCreateApiV1LoginResponseContent( PrepareRequest( client: _httpClient, request: httpRequest); - PrepareCreateApiV1LoginRequest( + PrepareCreateLoginRequest( httpClient: _httpClient, httpRequestMessage: httpRequest, request: request); @@ -65,7 +65,7 @@ partial void ProcessCreateApiV1LoginResponseContent( ProcessResponse( client: _httpClient, response: response); - ProcessCreateApiV1LoginResponse( + ProcessCreateLoginResponse( httpClient: _httpClient, httpResponseMessage: response); @@ -75,7 +75,7 @@ partial void ProcessCreateApiV1LoginResponseContent( client: _httpClient, response: response, content: ref __content); - ProcessCreateApiV1LoginResponseContent( + ProcessCreateLoginResponseContent( httpClient: _httpClient, httpResponseMessage: response, content: ref __content); @@ -101,7 +101,7 @@ partial void ProcessCreateApiV1LoginResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateApiV1LoginAsync( + public async global::System.Threading.Tasks.Task CreateLoginAsync( string? username = default, string? rsaEncryptedPassword = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -112,7 +112,7 @@ partial void ProcessCreateApiV1LoginResponseContent( RsaEncryptedPassword = rsaEncryptedPassword, }; - return await CreateApiV1LoginAsync( + return await CreateLoginAsync( request: request, cancellationToken: cancellationToken).ConfigureAwait(false); } diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.LoginClient.GetApiV1Rsa.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.LoginClient.GetRsa.g.verified.cs similarity index 87% rename from src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.LoginClient.GetApiV1Rsa.g.verified.cs rename to src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.LoginClient.GetRsa.g.verified.cs index 486e74648d..6ff074aadc 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.LoginClient.GetApiV1Rsa.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.LoginClient.GetRsa.g.verified.cs @@ -1,4 +1,4 @@ -//HintName: G.LoginClient.GetApiV1Rsa.g.cs +//HintName: G.LoginClient.GetRsa.g.cs #nullable enable @@ -6,16 +6,16 @@ namespace G { public partial class LoginClient { - partial void PrepareGetApiV1RsaArguments( + partial void PrepareGetRsaArguments( global::System.Net.Http.HttpClient httpClient); - partial void PrepareGetApiV1RsaRequest( + partial void PrepareGetRsaRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessGetApiV1RsaResponse( + partial void ProcessGetRsaResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetApiV1RsaResponseContent( + partial void ProcessGetRsaResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -25,12 +25,12 @@ partial void ProcessGetApiV1RsaResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetApiV1RsaAsync( + public async global::System.Threading.Tasks.Task GetRsaAsync( global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: _httpClient); - PrepareGetApiV1RsaArguments( + PrepareGetRsaArguments( httpClient: _httpClient); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -40,7 +40,7 @@ partial void ProcessGetApiV1RsaResponseContent( PrepareRequest( client: _httpClient, request: httpRequest); - PrepareGetApiV1RsaRequest( + PrepareGetRsaRequest( httpClient: _httpClient, httpRequestMessage: httpRequest); @@ -52,7 +52,7 @@ partial void ProcessGetApiV1RsaResponseContent( ProcessResponse( client: _httpClient, response: response); - ProcessGetApiV1RsaResponse( + ProcessGetRsaResponse( httpClient: _httpClient, httpResponseMessage: response); @@ -62,7 +62,7 @@ partial void ProcessGetApiV1RsaResponseContent( client: _httpClient, response: response, content: ref __content); - ProcessGetApiV1RsaResponseContent( + ProcessGetRsaResponseContent( httpClient: _httpClient, httpResponseMessage: response, content: ref __content); diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.UsersClient.GetApiV1Me.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.UsersClient.GetMe.g.verified.cs similarity index 87% rename from src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.UsersClient.GetApiV1Me.g.verified.cs rename to src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.UsersClient.GetMe.g.verified.cs index 2f47ee6a11..d84eca2705 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.UsersClient.GetApiV1Me.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Dedoose/SystemTextJson/_#G.UsersClient.GetMe.g.verified.cs @@ -1,4 +1,4 @@ -//HintName: G.UsersClient.GetApiV1Me.g.cs +//HintName: G.UsersClient.GetMe.g.cs #nullable enable @@ -6,18 +6,18 @@ namespace G { public partial class UsersClient { - partial void PrepareGetApiV1MeArguments( + partial void PrepareGetMeArguments( global::System.Net.Http.HttpClient httpClient, ref string token); - partial void PrepareGetApiV1MeRequest( + partial void PrepareGetMeRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string token); - partial void ProcessGetApiV1MeResponse( + partial void ProcessGetMeResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetApiV1MeResponseContent( + partial void ProcessGetMeResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -28,13 +28,13 @@ partial void ProcessGetApiV1MeResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetApiV1MeAsync( + public async global::System.Threading.Tasks.Task GetMeAsync( string token, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: _httpClient); - PrepareGetApiV1MeArguments( + PrepareGetMeArguments( httpClient: _httpClient, token: ref token); @@ -45,7 +45,7 @@ partial void ProcessGetApiV1MeResponseContent( PrepareRequest( client: _httpClient, request: httpRequest); - PrepareGetApiV1MeRequest( + PrepareGetMeRequest( httpClient: _httpClient, httpRequestMessage: httpRequest, token: token); @@ -58,7 +58,7 @@ partial void ProcessGetApiV1MeResponseContent( ProcessResponse( client: _httpClient, response: response); - ProcessGetApiV1MeResponse( + ProcessGetMeResponse( httpClient: _httpClient, httpResponseMessage: response); @@ -68,7 +68,7 @@ partial void ProcessGetApiV1MeResponseContent( client: _httpClient, response: response, content: ref __content); - ProcessGetApiV1MeResponseContent( + ProcessGetMeResponseContent( httpClient: _httpClient, httpResponseMessage: response, content: ref __content); diff --git a/src/tests/OpenApiGenerator.UnitTests/Snapshots/Dedoose/Methods/_.verified.txt b/src/tests/OpenApiGenerator.UnitTests/Snapshots/Dedoose/Methods/_.verified.txt index b0c66333bb..e955a4582f 100644 --- a/src/tests/OpenApiGenerator.UnitTests/Snapshots/Dedoose/Methods/_.verified.txt +++ b/src/tests/OpenApiGenerator.UnitTests/Snapshots/Dedoose/Methods/_.verified.txt @@ -38907,7 +38907,7 @@ FileNameWithoutExtension: G.LoginClient.GetTopBlogPosts }, { - Id: createApiV1Login, + Id: createLogin, Namespace: G, ClassName: LoginClient, BaseUrl: , @@ -39180,12 +39180,12 @@ } ], Converters: null, - MethodName: CreateApiV1LoginAsync, - NotAsyncMethodName: CreateApiV1Login, - FileNameWithoutExtension: G.LoginClient.CreateApiV1Login + MethodName: CreateLoginAsync, + NotAsyncMethodName: CreateLogin, + FileNameWithoutExtension: G.LoginClient.CreateLogin }, { - Id: getApiV1Me, + Id: getMe, Namespace: G, ClassName: UsersClient, BaseUrl: , @@ -39371,9 +39371,9 @@ } ], Converters: null, - MethodName: GetApiV1MeAsync, - NotAsyncMethodName: GetApiV1Me, - FileNameWithoutExtension: G.UsersClient.GetApiV1Me + MethodName: GetMeAsync, + NotAsyncMethodName: GetMe, + FileNameWithoutExtension: G.UsersClient.GetMe }, { Id: MemoAddFolder, @@ -61422,7 +61422,7 @@ FileNameWithoutExtension: G.ResourceClient.ResourceUpdateTranscriptData }, { - Id: getApiV1Rsa, + Id: getRsa, Namespace: G, ClassName: LoginClient, BaseUrl: , @@ -61525,9 +61525,9 @@ } ], Converters: null, - MethodName: GetApiV1RsaAsync, - NotAsyncMethodName: GetApiV1Rsa, - FileNameWithoutExtension: G.LoginClient.GetApiV1Rsa + MethodName: GetRsaAsync, + NotAsyncMethodName: GetRsa, + FileNameWithoutExtension: G.LoginClient.GetRsa }, { Id: SecurityAddGroup,