Forum Discussion
I am not sure what is your use case. When you do a composition of multiple OpenAPI files (yaml/json), you can use relative paths. You do not need to hold the absolute path in such a case.
If you describe in more detail what you want to achieve, we can come up with some further suggestions.
I use a global property file for many things. In this case, I want to use it to indicate the base directory where the API definitions (yaml files) are located.
In other words, if I give my project to another user, the API definitions are still pointing to my local directory. I'd like to use a "base directory" global variable which will resolve to each person's directory, where they store the yaml files. When that person clicks on a REST API and selects "Update Definition," it should look something like this:
${baseYamlDirectory}/data-service/openapi/myApiDefinition.yaml
but instead, it's hard coded, like this:
file:/C:/Users/myName/Documents/hebb/data-service/openapi/myApiDefinition.yaml
Is there a way to do what I'm trying to do? (ReadyAPI 3.10.1)
Related Content
- 6 years ago
- 13 years ago
Recent Discussions
- 22 days ago