Question

API Get DATA

  • 3 November 2022
  • 1 reply
  • 6 views

Badge +5

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


1 reply

Badge +9

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.

2022-11-09_14-23-09

Reply