Skip to content

Conversation

@andreichirila0712
Copy link
Contributor

Introduces support for File References API (closes: #341)

Changes:

  • New endpoints to manage the File References API, as per documentation: two GET, one POST, and one DELETE;
  • Added AssetReference.class (model), AssetReferenceResponseObject.class (mapping as a ResponseObject), AssetReferenceResponseList.class (mapping as a ResponseList), and AddAssetReferenceRequest.class (represents the body request required for POST);
  • An inner class User.class inside AssetReference.class that models the user;
  • All methods implemented are unit-tested, with all tests passing.

Notes:

  • I named classes with AssetReference prefix, but if it was more suitable to use just Reference I can refactor that to match the requirements;
  • Any feedback regarding the implementation or further adjustments that need to be made would be much appreciated.

* Introduced new endpoints to manage the File References API: listing (GET all), GET (for one), POST, and DELETE;
* Added new classes to model the asset reference, mainly four classes: the model itself, as ResponseList, as ResponseObject, and one that represents the body request for POST method;
* Added unit tests coverage to ensure correct functionality of the methods added.
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.28%. Comparing base (9cb7d72) to head (cf78d76).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #351      +/-   ##
============================================
+ Coverage     93.25%   93.28%   +0.04%     
- Complexity      898      903       +5     
============================================
  Files           201      202       +1     
  Lines          3242     3258      +16     
  Branches         70       70              
============================================
+ Hits           3023     3039      +16     
  Misses          183      183              
  Partials         36       36              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@andrii-bodnar andrii-bodnar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andreichirila0712 thank you!

@andrii-bodnar andrii-bodnar merged commit 4b25348 into crowdin:master Dec 8, 2025
2 checks passed
@andreichirila0712 andreichirila0712 deleted the feature/341-file-references-api branch December 8, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for new File References API

3 participants