get yang files/spec of devices located in the SDN-Controller schema cache ($ODL_HOME/cache/schema) (Files are stored by yang-tols always in format "urn@version")
get additional specs, mainly basic yang specs, because normally not available in cache/schema. (Filename format similar to cache/schma)
request based on module name and optional version
response Content-Type: plain/text
if file not found: 404
Request
Description
GET /yang-schema/{modulename}
get latest yang file for module
GET /yang-schema/{modulename}/version
get version or nearest later of yang file for module