Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger Import : Root context path not mapped correctly #2010

Closed
mknair75 opened this Issue Mar 6, 2019 · 3 comments

Comments

@mknair75
Copy link

mknair75 commented Mar 6, 2019

I am trying to load the swagger json available here - https://github.com/tmforum-apis/TMF641_ServiceOrder/blob/master/Service_Ordering_Management.regular.swagger.json
After I import the json, my expectation is that the context path in the plan is by default /tmf-api/serviceOrdering/v3/ as given in the swagger
But gravitee converts this to /apiserviceordering as context root
I tried changing this back to what is there in swagger in UI / Plan for the API but I am not able to invoke either of the paths
i.e IP:8000/apiserviceordering/serviceOrder OR IP:8000/tmf-api/serviceOrdering/v3/serviceOrder

Checked with @brasseld . He confirmed that this is a valid issue

Using 1.22.3 of APIM

@mknair75

This comment has been minimized.

Copy link
Author

mknair75 commented Mar 7, 2019

@brasseld is there any workaround we can use to rectify this ?

@brasseld

This comment has been minimized.

Copy link
Member

brasseld commented Mar 7, 2019

Would say, download the file, update the name and import the file....

@mknair75

This comment has been minimized.

Copy link
Author

mknair75 commented Mar 7, 2019

You mean update the name without "-". Is that causing the issue ? If we change the context root to following will that be ok (without "-")?
tmfapi/serviceOrdering/v3/serviceOrder

@brasseld brasseld added this to the APIM - 1.24.0 milestone Mar 12, 2019

brasseld added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Mar 14, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Mar 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.