Closed klues closed 7 years ago
Please construct the path to the data file like it is done in the current master in storeModel:
ResourceRegistry.toFile(ResourceRegistry.getInstance().getResource(filename, RES_TYPE.MODEL))
just replace the RES_TYPE with RES_TYPE.DATA
This automatically resolves the path to the data subfolder or any other folder if it is mapped to a different location. For writing you can also use the IOUtils class from apache commons, which is available as library within the ARE.jar
very cool that we have this method now!! :+1: Please don't forget to update documenation and libraries and examples as with all new REST functions
maybe we should add an extra REST-method for saving webapp-data or general data to ARE/data
-folder, see https://github.com/asterics/AsTeRICS/issues/163#issuecomment-337874810
…d new REST-method to store arbitary data