11-26-2018 12:00 PM
I am looking for a use case of documenting API's for a Service model / Yang by using Swagger. I noticed support of a yanger plugin for generation of swagger based on Yang for the NSO RESTCONF interface. Do we also have a support for REST API ?
Thanks,
Solved! Go to Solution.
11-30-2018 11:17 AM
I'd argue that the biggest benefit is that it's standardized :) There are also couple of cool features, e.g. notifications (similar to NETCONF notifications).
11-28-2018 07:49 AM - edited 11-28-2018 07:49 AM
Unfortunately not. Any reason you prefer the REST API over the RESTCONF API?
11-28-2018 03:24 PM
Hi Fredrik,
Thanks for your reply. I am supporting an existing environment to document existing API using swagger. This environment has not adapted to RESTCONF. ;(
PM
11-28-2018 03:27 PM - edited 11-28-2018 03:28 PM
I see :) when you make the transition* Swagger is there waiting for you.
* Please note that you can mix REST and RESTCONF from the NB system, there is no need for a RESTCONF flag day, but you can change one call at a time from REST to RESTCONF.
11-29-2018 06:30 PM
Make sense. Thank you sir !! Just for my understanding, what benefits it can give to NB system or overall operations on the long run? Just want to make sure I collect all points before I make recommendations.
Cheers,
11-30-2018 11:17 AM
I'd argue that the biggest benefit is that it's standardized :) There are also couple of cool features, e.g. notifications (similar to NETCONF notifications).
11-28-2018 03:24 PM
Hi Fredrik,
Thanks for your reply. I am supporting an existing environment to document existing API using swagger. This environment has not adapted to RESTCONF
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