An engineer creates a Python script using RESTCONF to display hostname information. The code must be completed so that it can be tested. Which string completes the highlighted areas in the exhibit?
In RESTCONF API calls, when specifying the content type in HTTP headers for requests or responses involving YANG-modeled data, ‘yang-data+json’ is used as part of the ‘Accept’ or ‘Content-Type’ headers to indicate that the message body contains JSON-encoded YANG-modeled data.
In this Python script using RESTCONF, ‘yang-data+json’ completes the highlighted areas because it specifies that JSON format is expected in response which conforms with YANG data modeling standards.
References: Automating Cisco Enterprise Solutions Official Cert Guide
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit