Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Question 12 of 166
Free Preview · 166 of 552 · questions 1–166 of 552 are free. Sign up free to sync your progress across devices.
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
The default data-encoding method for RESTCONF on Cisco IOS XE networking devices is application/yang-data+json. While RESTCONF can also use XML, JSON is the default.
IOS-XE The following services are supported by the REST connector for IOS-XE. get API to send GET command to the device. Argument Description Default content_type Content type returned(xml or json) (optional) json post API to send POST command with optional payload to the device. Argument Description Default content_type Content type retorned(xml or json) (optional) json or xml Note: If the content_type option is not passed, the script will try to detect if the payload is XML, otherwise it will assume JSON. The content-type and accept headers will be set based on the detected payload or on the passed content-type. DEVAST BOOK There are two new media types defined for RESTCONF: application/yang.api+xml for XML-encoded payloads application/yang.api+json for JSON-encoded data https://pubhub.devnetcloud.com/media/rest-connector/docs/user_guide/services/iosxe.html#
People who say XML have reason, I did the test with a router CRS1000v and got a XML. Simplely I obtained: <restconf xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf"> <data/> <operations/> <yang-library-version>2016-06-21</yang-library-version> </restconf> But in the texts says JSON. In conclution change my position to XML as default.