Skip to content

Improvements to Portal Commands #56

@aliasghar98

Description

@aliasghar98

Quickstart

  • [Urgent] Placeholder text for spec import prompt becomes actual text upon pressing 'Enter' to use sample API. This is an issue of the prompts package that we are using i.e. @clack/prompts. One of their recent releases introduced this bug and we are waiting for a resolution from their end.
  • Use the same default port as in the serve command. Using two different default ports is inconsistent behaviour.
  • Create the portal build files in current working directory instead of a separate apimatic-quickstart-portal folder.
  • Trim user inputs for each prompt.

Generate

  • Temporary file created containing the portal build files does not ignore already present portal artifacts in the directory.
  • Generated artifacts folder needs to have consistent naming. Currently we are using api-portal and generated_portal.
  • Prompt the user for overwriting existing portal artifacts folder in case it's already present.
  • Improve error handling.

Serve

  • Running multiple servers incorrectly throws exception about port already in use.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions