apigitlabs / apigit-support

APIGIT is a native Git based collaboration platform for API design, document, mock and share.
https://apigit.com
2 stars 0 forks source link

Inability to select an API spec when generating mock server script #17

Closed nad-au closed 1 year ago

nad-au commented 1 year ago

Is there an existing issue for this?

Describe the Issue

When I go to mock server scripts tab and click automatic mock server script generation link, I have no ability to select an api spec

image

And so generation fails

image

I have a single valid spec

image

Steps To Reproduce

  1. Delete all examples
  2. Create an open api spec in .apigit\code\spec.yaml
  3. Go to mock server scripts tab
  4. Click automatic mock server script generation link
  5. Observe inability to select an api spec and error generating script

Screenshots or Videos

No response

Browser

Brave

Additional Context?

No response

apigitlabs commented 1 year ago

hi @neildobson-au , based on your screenshots, i see you put your API spec under .apigit folder, this folder is reserved for apigit automation purpose. so when you generate mock server scripts, it will not count files under this folder. please create a new spec other than in ".apigit" folder, then you can copy your existing spec to that spec and do mock server generation.

nad-au commented 1 year ago

Thank you. I copied the spec to repo root and indeed that spec is available for selection in the generator dialog.