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
Step1:-
Log in to Anypoint platform
Step2:-
Create Fragment
Step3:-
provide fragments name and select specification
Step4:-
Create commontraits Trait as Fragment
Step5:-
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.