Rendering
Rendering is the process of exporting an AMF API Contract Model to a specific format. Any AMF model can be rendered as a standard JSON-LD or RDF graph. Additionally, in the case of the API Contract Model, it can also be exported to RAML, OAS and AsyncAPI:
Each rendering has limitations, as some elements may be unique to a specification and can't be represented in others.
AMF intends to support additional specifications as they become available.
You can find more technical information in the related documentation about AMF Conversion.
Rendering Examples
How to render a DomainElement:
- Scala
- Java
- TypeScript
Code extracted from the examples GitHub repository.
Code extracted from the examples GitHub repository.
Code extracted from the examples GitHub repository.
How to render from a stream:
- Scala
- Java
Code extracted from the examples GitHub repository.
Code extracted from the examples GitHub repository.