Skip to content

Commit 391a496

Browse files
fix: Incorrect endpoint in UploadStrings method (#344)
1 parent 725f243 commit 391a496

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Crowdin.Api/SourceStrings/SourceStringsApiExecutor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-

1+
22
using System.Collections.Generic;
33
using System.Net;
44
using System.Threading.Tasks;
@@ -180,7 +180,7 @@ private static string FormUrl_StringId(long projectId, long stringId)
180180

181181
private static string FormUrl_StringsUpload(long projectId)
182182
{
183-
return $"/projects/{projectId}/strings/upload";
183+
return $"/projects/{projectId}/strings/uploads";
184184
}
185185

186186
private static string FormUrl_StringsUploadId(long projectId, string uploadId)

tests/Crowdin.Api.UnitTesting/Tests/SourceStrings/SourceStringsApiTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-

1+
22
using System;
33
using System.Collections.Generic;
44
using System.Linq;
@@ -154,7 +154,7 @@ public async Task UploadStrings()
154154

155155
Mock<ICrowdinApiClient> mockClient = TestUtils.CreateMockClientWithDefaultParser();
156156

157-
var url = $"/projects/{projectId}/strings/upload";
157+
var url = $"/projects/{projectId}/strings/uploads";
158158

159159
mockClient
160160
.Setup(client => client.SendPostRequest(url, request, null))

0 commit comments

Comments
 (0)