- Issue created by @andrei.vesterli
- π²π©Moldova andrei.vesterli Chisinau
Here is the JSONAPI example response with the view operation enabled
- πΊπΈUnited States pookmish
This is not something supported by this module.
Currently, we can't request data via JSONAPI requests to view an asset. The system may need that for some reasons (for example, decoupled reasons)
1. Download and install the module JSONAPI and JSONAPI Extras
2. Download and install the module Asset Injector
3. Enable the resource for Assets CSS or JS
4. Open the resource in a new browser tab
1. Add a new custom permission for this purpose JSONAPI: View CSS/JS Asset entity
2. Add an additional check for AssetInjectorAccessControlHandler
so, we'll allow the operation "view" for JSONAPI requests but via the permission check
3. Write a patch for this purpose
Write the patch.
No.
No.
No.
Active
2.21
Code
Here is the JSONAPI example response with the view operation enabled
This is not something supported by this module.