I want to use a global variable in RAML file:
#%RAML 1.0
title: MyTitle
myVariable: http://example.com
version: v1
baseUri: {myVariable}/{version}
but it doesn't work. Does RAML actually allow that?
I want to use a global variable in RAML file:
#%RAML 1.0
title: MyTitle
myVariable: http://example.com
version: v1
baseUri: {myVariable}/{version}
but it doesn't work. Does RAML actually allow that?
Copyright © 2021 Jogjafile Inc.
No, it doesn't allow to level vars like that. However it does allow you to define
baseUriParameterslike so: