Summary
This chapter provided you with an overview of Nautobot APIs, including its REST APIs, GraphQL, and Webhooks. You saw the power of GraphQL over REST APIs in being able to ask Nautobot for the data you want. You got to work with both APIs in Python, but also saw how to use GraphiQL, a program that’s built into Nautobot that accelerates building and testing GraphQL queries. You also saw how Jinja templates embedded with Webhooks can eliminate middleware, which is often needed to transform data into the target destination’s format.
In the next chapter, we will explore Nautobot integrations within the NetDevOps ecosystem with a focus on pynautobot and the Nautobot Ansible collection.