Is it possible to create a json file through JSReport API?
-
Hello! We have a service that is responsible for report templates creation/updation in JSReport. And we adding localization feature. Is it possible to do create/update localization json files through API? If yes, please, show me how. Thanks!
-
Yes!
The localization extension uses assets entities to store the localization json.jsreport implements OData API for querying and manipulating all entities in a unified form.
https://jsreport.net/learn/api#querying-and-crud
To get some examples, you can right click an entity in the jsreport studio, and select "Definition".
-
The Assets was my guess but I stuck with the
content
field. Thanks for the tip with Definition! Looks like it can be just base64 encoded text.
Thank you, Jan!