Import
Postman Collection
  • Introduction
  • Development Environment
  • NDFC
  • ND/NDFC REST API
  • NDFC Postman
  • NDFC Python
  • NDFC Ansible
  • NDFC CI/CD

Postman

Postman is an API platform for building and using APIs. You can use Postman to quickly and easily test API calls before you implement them in complex applications. Postman should have been opened on your PC, if not, please open the Postman application.

Step 1 - Import Postman Collection

Under the Collections tab (should be the default selection):

  1. Click the Import button



  2. Copy https://ndfc-devops-lab.ciscolive.com/lab/static/files/NDFC_RESTAPI.postman_collection.json
  3. Paste the copied link into the Paste cURL, Raw text or URL... field



  4. The collection will automatically import when the link is pasted.
  5. Note

    If you see the message:
    "A collection NDFC RESTAPI already exists. What would you like to do?"
    Click Replace


Step 2 - Update Postman Collection Variable

This Collection comes with variables to populate and drive the REST API requests. The main variable that needs to be updated is base_url to be set to the URL of your ND instance.

  1. Click the Variables tab
  2. Locate the base_url variable (this should be the first, top-most variable)
  3. Copy your ND URL https://10.15.0.98 to the Current value
  4. Use Ctrl+S on your keyboard to save the updated value




Continue to the next section to test various NDFC API endpoints that include getting fabric inventory, setting and deploying interface, VRF, and network configuration.