一种方法是使用baseUriParameters并使用枚举值进行不同的部署.
#%RAML 0.8
title: Some Service
version: 1
baseUri: https://{environment}/rest/v{version}/services/someservice
baseUriParameters:
environment:
description: Integration test, Acceptance Integration Test, Production
enum: ["test-api.company.com","acc-api.company.com","api.company.com"]
Run Code Online (Sandbox Code Playgroud)