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

Append version of the API twice to access URL when create an API with swagger file and import to APIM #590

Open
renuka-fernando opened this issue Apr 29, 2021 · 0 comments
Labels

Comments

@renuka-fernando
Copy link
Contributor

renuka-fernando commented Apr 29, 2021

Description:
$subject

When deployed from swagger directly and publish the API
image

When deployed from API-CTL project
image

Steps to reproduce:

  1. kubectl create cm petstore-cm --from-literal=swagger="$(curl -k https://petstore.swagger.io/v2/swagger.json)"
  2. apictl init petstore --oas https://petstore.swagger.io/v2/swagger.json
  3. zip -r petstore.zip petstore/
  4. kubectl create cm petstore-cm --from-file petstore.zip
  5. Add API
    cat <<EOF | kubectl apply -f -
    apiVersion: wso2.com/v1alpha2
    kind: API
    metadata:
        name: petstore-api
    spec:
        swaggerConfigMapName: petstore-cm
    EOF
    

API Operator 2.0.0-rc1
APIM 4.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant