And it works :) Requesting the shortId of my default folder name first and passing the shortId to a second query to get the template contents is good enough. Thanks for the quick help!
Posts made by ln-aa
-
RE: Accessing templates within folders using URL-params (CRUD)?
-
RE: Accessing templates within folders using URL-params (CRUD)?
Great! Thanks. The only downside is that i need to know the shortid of my folder in advance.
I'm running jsreport on two different servers (one for development and one for production) so the shortid for my "print" folder will differ on each server. Is there a way to pass the folder name instead of the shortid in the URL?
-
Accessing templates within folders using URL-params (CRUD)?
As described in the api documentation, we can access templates within specified folders by passing the full path of the template within a HTTP-post call. But what should that call look like if I want to get all Templates from a specific folder?
Calling http://localhost:5488/odata/templates returns a list of all templates. But how do i pass the folder name into that call so the response only returns my dummyPrint template from my print folder?
Folder-Structure: