From the course: Cisco DevNet Associate (200-901) Cert Prep 2: Understanding and Using APIs

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

RPC in action

RPC in action

- [Instructor] Let's take a look at a synchronous call example to the Nexus device. I'm going to use a always-on lab device from Cisco DevNet. If I type in the show version command and choose the JSON-RPC format, and click on Post, you can see the response will return the desired output, but what is important is to look at the requests, formats, which includes the JSON-RPC version, the method, as well as the parameter. If I reset this, if I type in the show version and choose JSON message format in the REST call, click on the same post, you can see the response show more or less the same output, but what is important for us is to look at the request's JSON format, which is simply a key value pair. I hope that illustrates the difference between a Remote Procedure Call versus a REST API call.

Contents