REST and RESTCONF training course description
An introduction to REST and RESTCONF using
Python. The course progresses from how to use them
onto how they work and then looks at using them from
within Python all the time on network devices.
What will you learn
Explain what REST and RESTCONF are.
Use the REST API on network device.
Use RESTCONF.
REST and RESTCONF training course details
Who will benefit:
Network engineers.
Prerequisites:
Python for network engineers.
Duration
1 day
REST and RESTCONF training course contents
Using REST
Curl, Browser plugins, Postman, RESTClient,
Python.
Hands on Using the REST API on
network devices.
What is REST?
What is REST? Architecture, APIs, RESTful APIs,
APIs over HTTP/HTTPS, URIs, resources, HTTP
methods, GET, POST, PUT, DELETE. CRUD.
Comparison with other APIs.
Hands on REST
analysis with Wireshark.
Rest conventions
Passing parameters, return values, HTTP status,
JSON. XML.
Hands on Configuring REST on
network devices, changing format of responses,
POST requests, using parameters.
Configuring network devices with REST
Invoking multiple RPCs.
Hands on Device
configuration with REST.
The request library
RESTFUL APIs in Python, the request library,
Installation, example to retrieve the interface
configuration.
Hands on Using the Python
requests library on network devices.
RESTCONF
What is RESTCONF? YANG and NETCONF,
relationship with REST, RESTCONF URIs, A
RESTCONF example with ietf-interfaces,
RESTCONF responses. PATCH.
Hands on
Using RESTCONF to update a network device
configuration.