How can I change the content type that an endpoint will accept in ProfoundAPI? I have a node module that will decode multipart/form-data that is working well when I add a custom route in start.js. But this is not working for me using low-code apis built in the IDE. From the IDE's tester which uses content-type: application/json it does not get the error below.
However when I use Postman to pass the actual parms + file using the multipart/form-data header I get this specific error...
When you get this error. Have you removed that express route from the start.js and restart your server.
The Profound API (low-code) does not need this registration.
Could you share part of your code from the that uploader.api.json.
At present, Profound API only supports the content type of application/json. I will bring this up to the development team to consideration.
You're correct that Profound UI (and Profound.js) Rich Display screens have a file upload widget. This is something you drag onto a screen in order to facilitate uploads to the application that's driving that screen.
Since you are using an API, there's no screen, and no widgets that can be enabled -- so that wouldn't apply, here.
As Scot said, we'd be happy to create a feature request for adding file uploads to Profound.js for things like APIs (or to Profound API, which you mention in the title of the thread, but your code samples appear to be for Profound.js).