api-snippets
v1.0.0
Published
Mojaloop API specification reusable snippets
Readme
api-snippets
Usage
Install the snippet library
npm install api-snippets --save-devInstall the reference resolving library
npm install multi-file-swagger --save-devModify swagger file to reference api-snippets.
ex.
Money:
$ref: node_modules/api-snippets/v1.0/openapi3/definitions/Money.yamlRender and resolve the references.
multi-file-swagger -o yaml api.yaml > api_render.yamlQuestions
- Are paths in the Mojaloop Specification considered "snippets"? Are they re-used widely across services?
- Do we need to support both Swagger 2.0 and Open Api 3?
