The REST API described below allows you to perform the fetch, extract and validate steps provided using HTTP GET.
The URLs below accepts GET requests and return their payload in JSON with the with the Content-Type
header set to application/json
.
/api/rfc/<rfc>
<rfc>
with the number of the RFC, e.g. 7223./api/draft/<draft>
<draft>
with the canonical name of the draft, e.g. draft-ietf-netmod-ip-cfg-14. Remove the version number at the end of the name to retrieve the most recent version published (e.g. draft-ietf-netmod-ip-cfg).The response JSON consists of a list of objects (one per extracted YANG modules) with the name of the extracted YANG module and the following content:
xym_stderr
object with the output of the xym extraction steppyang_stderr
object with the output of the pyang validation steppyang_output
object with the output of the pyang tree rendering stepconfdc_stderr
object with the output of the confdc compiler stepyanglint_stderr
object with the output of the yanglint validation stepyangdump_stderr
object with the output of the yangdump-pro validation step/api/versions