03-03-2022 02:45 AM
HI , I am very new to API and is playing with CSR in CML using postman.
Can some one direct me where to find the repository of all API calls to the router. Like to see the interfaces or version of the softwire or even modify the IP address etc.
03-03-2022 02:57 AM - edited 03-03-2022 02:59 AM
here is the guide to start (let us know any further information required)
postman demo :
03-03-2022 04:04 AM
Thanks for that input, it did solve half of my issue . Now i can do API calls to the router .
My second half was, where is the repository of all API commands. Like if i want to see all of the interface what am i suppose to write in the postman like https://restconf/data ???? . There should be a repository somewhere which you can get these commands from . No one is expected to remember all of these URLs.
Thanks
03-03-2022 04:40 AM
check the API reference here :
https://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/restapi/restapi/RESTAPIintro.html
03-03-2022 04:48 AM
Its a general article about the use of API , Again i am looking for that repository of all API calls that could be made to a device .
Like there is repository of all cisco commands where you can go to see how to modify an interface and so on.
How can i know what would i need to type in the postman to modify the BGP parameter for example . What is the path to access the BGP section for example . Hope you get my question.
thanks
03-03-2022 05:05 AM
The document has all the information : ( i would suggest to spend some time to understand and execute the commands in postman
IF you need to get BGP information :
GET /api/v1/routing-svc/bgp
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide