rh-integration / IntegrationApp-Automation

Sample Integration application along with lifecycle automation
Apache License 2.0
13 stars 9 forks source link

Fuse applications expose two paths of API Doc #36

Closed osmman closed 4 years ago

osmman commented 5 years ago

Fuse applications have incorrectly defined API Doc paths. The problem is that REST configuration is set to expose API Doc at /openapi.json path but you expose the API Doc on /openapi-spec.json.

This causes the application creates both paths: /cicd/openapi.json - Returns 200 and empty response /cicd/openapi-spec.json

<restConfiguration apiContextPath="/openapi.json"/>
<rest path="/">
    <get produces="application/json" uri="openapi-spec.json">
redhatHameed commented 5 years ago

@osmman Fix in PR https://github.com/rh-integration/IntegrationApp-Automation/pull/37, could you please have a look

osmman commented 5 years ago

LGTM, thanks.