In this tutorial, we will demonstrate how can we include fragments in raml api specification.
Step1:-
In “API SPECIFICATION“, Define how to api will behave and how it communicates with other system & APIs.
Create new API specification
Step2:-
Provide the name of New Api Specifiation
Step3:-
Basic structure is ready like shown below
Step4:-
Click on add dependency using + sign
Step5:-
Select the fragments created in last tutorial
Step6:-
You can see fragments are added as exchange_modules and you can use any fragment in RAML