You are not logged in.
Pages: 1
Thank you for your quick response.
Hello,
I try to send files via form-data but I get a 406 error "sicPerSession execution failed (probably due to bad input parameters)" every time. I don't understand what arguments are expected by Synopse for this data format.
Also, MultiPartFormDataDecode seems to accept only files and no other form data. Moreover, it needs to be provided with a MimeType as a parameter which seems strange since the MimeType is already included in the form-data.
Anyway, if someone has an example of API with form-data...
Thanks in advance.
Ok for HSTS, but it's not natively in Synopse (I use TSQLRestServerDB). And if I want customize the other headers ?
Hi!
I would add some HTTP headers to my REST server. I found how to add for each API but not to all the API.
For example, I would add the Strict-Transport-Security (HSTS) or Access-Control-Expose-Headers header.
Ok, thanks.
If I understand correctly, using TServiceCustomAnswer, I have to write my own wrapper to correctly generate the data to swagger?
How do I declare my functions so that Swagger can correctly categorize them? Currently, I only have POSTs in the documentation while some functions are GET or DELETE.
My published functions are declared as follows:
function GET_xxxx(const AValue1, AValue2: RawUTF8): TServiceCustomAnswer;
function POST_xxxx(const AValue: RawUTF8): TServiceCustomAnswer;
Pages: 1