Select output format (JSON, XML, SOAP...)
Published at: April 4, 2018, 3:36 p.m. in the DocumentationFor change the format of data exchange, it is enough to specify a subdomain with the name of the format, for example:
- https://json.smappi.org/adw0rd/example/greeting?name=World
- https://xml.smappi.org/adw0rd/example/greeting?name=World
Sometimes, it takes more knowledge of working with some format, for example for SOAP, you need to study the WSDL schema.
These details are present in the documentation tab of the specific API format.
For local development, it is enough to specify the argument _smappi_fmt:
- http://localhost:8000/greeting?name=World&_smappi_fmt=json
- http://localhost:8000/greeting?name=World&_smappi_fmt=xml
Default format is JSON.