In this tutorial ,we will demonstrate how can we Create Fragments In RAML 1.0.
“API fragments” are reusable component of raml to make the design and build of a reusable API even easier and reduces the effort of implementing APIs.
In tutorials,we will show, how to create the RAML fragments
Log in to Anypoint platform
provide fragments name and select specification
Create commontraits Trait as Fragment
Publish the created fragments on Exchange so that it can be reusable across all the API’s across organization
Click publish button on top right corner
Fragments published to exchange can be reused in RAML.
I will demonstrate how can we reuse fragments in RAML in next tutorial.