Hi, I'm working on APIConnect v5.0.0 on Bluemix. I have 2 different APIs in the same product that provide different information kind: weather and geolocation. Each APIs has own definitions. Now I have to share definition in weather that was declared in geolocation. There are a different solution from cloning?
Thanks. Daniele
UPDATE:---------- I was tring to use $ref to reference external yaml file definition but I have the follow error: Reference could not be resolved. I was make wrong something? in api.yaml
definitions:
Def2:
$ref: def2.yaml
in def2.yaml
properties:
prop1:
type: string
additionalProperties: false
Answer by Chris Bygrave (423) | Sep 23, 2016 at 02:48 AM
Hi Daniele,
We're looking at improvements around sharing definitions and other artifacts between swagger files. Right now, you are best to use a copy of the definition in each API, but watch out for future releases of API Connect where we may have a better solution for you!
Thanks Chris
ERROR when updating API Portal (chmod: cannot access '/etc/csync2.key': No such file or directory) 0 Answers
Implementing Mutual SSL in API Connect 1 Answer
Validate Policy - Messages 0 Answers
How to implement API for two services? 1 Answer
Im facing a lot of challenge in meeting a requirement using API Connect 3 Answers