- Previous: REST Format
- Up: API Documentation
- Next: JSON Response
REST Response
The REST response is a simple XML block.
A method call returns the following:
- <?xml version="1.0" encoding="utf-8"?>
- <response status="success">
- <format>rest-xml</format>
- <version>2.0</version>
- {RESPONSE-BODY}
- </response>
If an error occurs, the following will be returned:
- <?xml version="1.0" encoding="utf-8"?>
- <response status="fail">
- <format>rest-xml</format>
- <version>2.0</version>
- <error-code>{error-code}</error-code>
- <error-message>{error-message}</error-message>
- <error-exception>{stacktrace}</error-exception>
- </response>
- Previous: REST Format
- Up: API Documentation
- Next: JSON Response
0 Comments
Please sign in to post a comment.