feat: add support for file references api#351
Merged
andrii-bodnar merged 1 commit intocrowdin:masterfrom Dec 8, 2025
Merged
Conversation
* 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 Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
andrii-bodnar
approved these changes
Dec 8, 2025
Member
andrii-bodnar
left a comment
There was a problem hiding this comment.
@andreichirila0712 thank you!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces support for File References API (closes: #341)
Changes:
GET, onePOST, and oneDELETE;AssetReference.class(model),AssetReferenceResponseObject.class(mapping as aResponseObject),AssetReferenceResponseList.class(mapping as aResponseList), andAddAssetReferenceRequest.class(represents the body request required forPOST);User.classinsideAssetReference.classthat models the user;Notes:
AssetReferenceprefix, but if it was more suitable to use justReferenceI can refactor that to match the requirements;