← Back to Documentation Hub
API Code Generator
Generate curl, Python, Ansible, and JavaScript code for Cisco IOS-XE RESTCONF APIs
Home
Compare Trees
YANG Report
Trees
|
Oper
Config
Native
MIB
RPC
Request Configuration
Select Spec (optional — auto-fills path)
— Manual path entry —
Select Path from Spec
— Select a path —
Device/Host
HTTP Method
GET - Retrieve data
POST - Create resource
PUT - Replace resource
PATCH - Update resource
DELETE - Remove resource
API Path (starts with /restconf/...)
Examples:
• Operational: /restconf/data/Cisco-IOS-XE-interfaces-oper:interfaces
• Config: /restconf/data/Cisco-IOS-XE-native:native
• RPC: /restconf/operations/Cisco-IOS-XE-rpc:ping
Username
Password
Request Body (JSON)
Example for POST/PUT/PATCH:
{"Cisco-IOS-XE-native:native": {"hostname": "NewRouter"}}
Generate Code
Clear Form
Generated Code
curl
Python (requests)
Ansible
JavaScript (fetch)
Copy
Copy
Copy
Copy