Difference between revisions of "Calling Web Services via Curl"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
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_Web_Service | Data Validation]] and [[Data_Transformation_Web_Service | 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. | 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_Web_Service | Data Validation]] and [[Data_Transformation_Web_Service | 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 == | ||
+ | |||
+ | <pre> | ||
+ | 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 | ||
+ | </pre> |
Revision as of 05:49, 7 February 2023
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