-
Notifications
You must be signed in to change notification settings - Fork 297
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
Add public asset fetch endpoint #998
Conversation
Codecov Report
@@ Coverage Diff @@
## master coronasafe/care_fe#998 +/- ##
==========================================
- Coverage 54.02% 52.67% -1.35%
==========================================
Files 182 183 +1
Lines 8990 8937 -53
==========================================
- Hits 4857 4708 -149
- Misses 4133 4229 +96
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Added caching the asset for 24 hours by it's
|
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Fixes ohcnetwork/10bedicu#82
As per the discussion with @gigincg , This PR adds a new public API endpoint for retrieving an asset by it's external ID.
This endpoint can later be used to serve the asset details on a public page which can be referred to by the QR code.
GET public/asset/<id>
- Returns the details of the asset identified by it's external id.It includes only fetching a particular asset and does not allow any other operations including listing.