Calling Web Services via Curl

From FMR Knowledge Base
Revision as of 06:49, 7 February 2023 by Plazarou (talk | contribs)
Jump to navigation Jump to search

Rather than using the Graphical User Interface, the Fusion Metadata Registry can perform operations by calling its Web Services. Examples of these are the Data Validation and Data Transformation Web Services. These can be invoked by a tool such as Postman, but this page aims to give some guidance on using the UNIX tool "curl" to invoke these Web Services.

Use of Curl

  curl -X POST 
  --header "Content-Type:application/text" 
  --header "Structure:urn:sdmx:org.sdmx.infomodel.datastructure.Dataflow=OECD:DF_BATIS_EBOPS2010(1.0)" 
  --data-binary "@BATIS_EBOPS2010_UPDATE_OWNER_TOPMETA_DIM1_DIM2_DIM6 2022-12-13 10~05~49_processed.csv" 
  --header "Accept: application/vnd.sdmx.structurespecificdata+xml;version=2.1" 
  http://localhost:8080/FusionRegistry/ws/public/data/transform 
    > Generated.xml