Hi,
I have a script which takes a path to an xml or txt file as an input and outputs its content (as xml or txt) after a few modifications have been applied.
I would like to make the script available as a RESTXQ application, but it is not clear to me how I can specify, in a RESTXQ function, that an xml or txt file should be accepted as an input. I have been able to post by sending the content of an entire file as a string, but I guess there is a specific way to handle files.
Ciao, Giuseppe
if you were to put your efforts on github, I'd certainly be interested.
On 11/19/20 6:10 PM, celano@informatik.uni-leipzig.de wrote:
Hi,
I have a script which takes a path to an xml or txt file as an input and outputs its content (as xml or txt) after a few modifications have been applied.
I would like to make the script available as a RESTXQ application, but it is not clear to me how I can specify, in a RESTXQ function, that an xml or txt file should be accepted as an input. I have been able to post by sending the content of an entire file as a string, but I guess there is a specific way to handle files.
Ciao, Giuseppe
Hi Giuseppe,
I would like to make the script available as a RESTXQ application, but it is not clear to me how I can specify, in a RESTXQ function, that an xml or txt file should be accepted as an input.
What have you tried so far? Are you planning to upload your file as binary stream (e.g. via curl), or do you want to provide an HTML form?
Best, Christian
basex-talk@mailman.uni-konstanz.de