Jsreport Delete odata Templates
-
Is there a method like get and post in jsreport api (http://localhost:8001/odata/templates) to delete the template such as Method: delete and the url is basically http://localhost:8001/odata/templates?shortid=rkCkPmWX-
-
Trying to remove template in jsreport studio and monitoring the network in dev tools gives you this call:
DELETE http://localhost:5488/odata/templates(huBQI9tWTQAbbGKl)
If you want to delete by shortid, you should make before a GET by shortid call to find out the real id and then call delete.
-
@jan_blaha thanks for the response. Is there an api to get the id as of right now? If so, that would be perfect, however i can extract the values from the json and get the id. Thank you once again for the quick response.
-
The best to get the _id from the json.
-
How do i rep you? Thanks for your support.