G'day,
We have some Asset software which has an API available, on the most part we are interfacing with the API well. There is an upload component which I have never been able to automate, yet I can use the manual swagger page to test it out no worries.
The swagger page with the /api/geo/add_geo_package can be found here - https://api-albury.conquest.live/swagger/#/GeoPackageImportService/GeoPackageImportService_AddGeoPackage
Basically, I need to manually click 'choose file' from the webpage, which I can do, but I want to automate this step using FME, so I don't know how to replace the manual "choose file" button with a simple file path location to tell it where the file is currently located.
I have just noticed there is an 'upload file' option in FME, I am trying to implement this, it seems straightforward, so I have setup my tranformer as per this screenshot:
This runs well, but the _output field is empty, and the swagger site provided above states that I should be provided with a string as a result of this upload. Instead it shows code 200 (success) and the string is blank. I am not sure if I have done something wrong? See output in the above screenshot.
This is what swagger indicates should be returned as the response body:
edit: found the upload option, but still cant get it working. modified the question accordingly.