Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for send file upload API #488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
KoditkarVedant merged 15 commits into main from 478-add-support-for-send-file-upload-endpoint
Oct 18, 2025
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
e090418
Add support for send file upload api
KoditkarVedant Oct 11, 2025
3ed25e8
Merge branch 'main' into 478-add-support-for-send-file-upload-endpoint
KoditkarVedant Oct 11, 2025
5f36bbf
Fix code factor warnings
KoditkarVedant Oct 11, 2025
c58e2ab
Fix code factor warnings
KoditkarVedant Oct 12, 2025
ea1d551
Merge branch '477-add-unit-tests' into 478-add-support-for-send-file-...
KoditkarVedant Oct 12, 2025
e48333f
Adjust property name in integration test
KoditkarVedant Oct 12, 2025
eed81b4
Add validation for part number if provided should be between 1 to 1000
KoditkarVedant Oct 12, 2025
8254b8b
Add unit tests for Send file upload api endpoint
KoditkarVedant Oct 12, 2025
70fbb3e
Merge branch 'main' into 478-add-support-for-send-file-upload-endpoint
KoditkarVedant Oct 12, 2025
204478f
Remove JsonProperty attribute from PartNumber as the model is not sen...
KoditkarVedant Oct 12, 2025
33ea735
Rename file to FileUploadsClientTests
KoditkarVedant Oct 12, 2025
8766e0e
Rename test file to FileUploadsClientTests
KoditkarVedant Oct 12, 2025
95a2f93
Rename unit test file to FileUploadsClientTests
KoditkarVedant Oct 12, 2025
66fb939
Dispose stream to avoid potential leak
KoditkarVedant Oct 12, 2025
fd6c4fb
Use IsNullOrWhiteSpace to check file upload id is present
KoditkarVedant Oct 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename unit test file to FileUploadsClientTests
  • Loading branch information
KoditkarVedant committed Oct 12, 2025
commit 95a2f9335bb3d49f7bc032005d999243f76a3a6f

Some comments aren't visible on the classic Files Changed page.

Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

namespace Notion.UnitTests;

public class FileUploadClientTests
public class FileUploadsClientTests
{
private readonly AutoMocker _mocker = new();
private readonly FileUploadsClient _fileUploadClient;
private readonly Mock<IRestClient> _restClientMock;

public FileUploadClientTests()
public FileUploadsClientTests()
{
_restClientMock = _mocker.GetMock<IRestClient>();
_fileUploadClient = _mocker.CreateInstance<FileUploadsClient>();
Expand Down

AltStyle によって変換されたページ (->オリジナル) /