YangCatalog / backend

YANG Catalog's REST API and internal module processing pipeline
https://yangcatalog.org
Apache License 2.0
2 stars 11 forks source link

Change schema links to point to YC.O #722

Closed richardzilincikPantheon closed 1 year ago

richardzilincikPantheon commented 1 year ago

We keep a URL to a copy of every module's text.

Example: https://yangcatalog.org/yang-search/module_details/yang-catalog, the URL is https://raw.githubusercontent.com/YangModels/yang/39c9ea61985fc8efdf90db25b58118cac2bf1533/experimental/ietf-extracted-YANG-modules/yang-catalog@2018-04-03.yang.

The URLs currently point to the GitHub repository from which the specific module was retrieved.

We keep a copy of every module's text on our server and could serve them ourselves at URLs like https://yangcatalog.org/all_modules/yang-catalog@2018-04-03.yang, which would allow us to remove complex code that currently manages the GitHub URLs. We would also be able to keep serving a module if it’s GitHub repo is deleted.