Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Export swagger definition doesn't work #55

Open
ghost opened this issue Feb 17, 2017 · 1 comment
Open

Export swagger definition doesn't work #55

ghost opened this issue Feb 17, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 17, 2017

Hello There,

The export swagger definition doesn't work for me. It throws an error : "java.lang.exception: Selected APIs must contain at least one endpoint". This happens though i select all the possible end points.

Swagger Plug In Version - 2.5.1
Ready API Version - 1.9.0

Steps to reproduce:

  1. Select a project from the project tab in ready API
  2. Right click on the project
  3. Select "Export Swagger"
  4. "Select all" API option
  5. Select target folder
  6. Leave the API version as-is i.e. 1.0
  7. Set some base path https://example/
  8. Select Swagger version 2.0
  9. Select Format yaml.
  10. Hit ok.

Result: It throws an error : "java.lang.exception: Selected APIs must contain at least one endpoint"

image

image

@olensmar
Copy link
Contributor

Hi!

you need to make sure that the REST API has an endpoint defined; before exporting to Swagger please select your API in the project view and then make sure the Endpoints tab on the right contains at least one endpoint as shown in the below image:

image

Hope this helps!

/Ole

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

No branches or pull requests

1 participant