Learning paths › Automation › REST APIs, authentication and requests
REST APIs, authentication and requests
REST from the contract down: what makes an API RESTful, resource against RPC and query styles, events received instead of polled, a request made with curl and a decision about whether to wait for the result, then authentication separated from authorization — credentials in an Authorization header, exchanged for a token, an API key placed on the right header — and create, read, update and delete worked against a demo API, inspected in a request client and driven in a loop; it closes on Git from init through status, branches, a merge conflict and a push to a remote. Explanation and checks; four written exercises.
Lessons
- Install requests and see its dependencies
- Read an API contract
- Know what makes an API RESTful
- Compare resource, RPC and query API styles
- Receive events instead of polling
- Make an HTTP request with curl
- Decide whether to wait for the result
- Separate who you are from what you may do
- Send credentials in an Authorization header
- Explore a demo library API
- Exchange credentials for a token
- Create, read, update and delete a record
- Build and inspect a request in Postman
- Attach an API key to the right header
- Create many records in a loop
- Get the interpreter and address right before running
- Identify yourself to a local repository
- Start tracking a project with git init
- Change file contents the shell way
- Read status, log and branch pointers
- Merge a feature branch into main
- Resolve a merge conflict
- Add a remote and push to GitHub
- Tell an image apart from a container
More in Automation
- First scripts that configure devices
- NAPALM: structured data across vendors
- Concurrency, and the Python types device output returns
- Parsing show output and testing conditions
- Readable code, branching and loops
- Build the workstation and the toolchain
- Files, CSV, JSON and pickle
- Paramiko: SSH to devices from Python
- Netmiko at fleet scale
- Tuples, sets and dictionaries for device records
- Exceptions and your first classes
- Plan and build the automation lab
- Files, formatting and regular expressions
- Addresses, functions, modules and classes
- CSV inventories, logging and scheduling
- Netmiko, SCP and structured parsing
- Agents, async and model-driven workflows
- NETCONF, YANG and RESTCONF
- NX-API, pyATS and Genie
- A small GenAI app, end to end
- macOS, Linux and the virtual lab
- Agile delivery and Python fundamentals
- Flask, Docker and Jenkins
- Managing a router with NETCONF and RESTCONF
- Ansible: inventory, ad-hoc commands and first playbooks
- Roles and zero-touch provisioning for Linux switches
- Installing the controller and applying a project
- Setting up Python 3
- The Ansible lab and the controller
- Vault, variables and config changes
- Parsing output and knowing which variable wins
- Jinja filters and PAN-OS automation
- Loops, callbacks, strategy and run control
- Roles, imports and writing your own module
- Running playbooks from AWX