i am trying to get the data in api but its only showing me the file name not shoing thw data
http://40.76.139.235/fmerest/v3/resources/connections/FME_SHAREDRESOURCE_DATA/filesys/resttraining/Test.json?token=93c5c6c2-2025-411a-955a-cb481cf01c40
Output should be like this
https://www.nhc.noaa.gov/CurrentStorms.json
Hi @asadmjad,
The results of the call will depend on the accept header. Accept: application/octet-stream
returns the file. Whereas, Accept: application/json returns the metadata about the file.
If you want the file in the response body of the call you'll also want to add the query parameter dispostion=inline.
Altogether, it should look like this.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.