Skip to content

Saving API Definition after “Edit and Import” does not redirect back to API Definition page #4541

@VenukshiMendis

Description

@VenukshiMendis

Description

When importing an OpenAPI Definition for an existing API, saving the definition after selecting the “Edit and Import” option does not redirect the user back to the API Definition page.
Instead, the editor view remains open even after the definition is successfully saved.

Image

Image

Additionally, when the editor page is manually closed, the “Import OpenAPI Definition” dialog remains open, instead of closing automatically.

Image

Steps to Reproduce

  1. Navigate to an existing API in the Publisher Portal.
  2. Go to the API Definition section.
  3. Click Import Definition.
  4. Import an OpenAPI Definition using either option: OpenAPI URL or OpenAPI File/Archive.
  5. Choose Edit and Import.
  6. In the editor that opens, either:
    • Make some changes to the definition, or
    • Directly click Import Content without modifications.
  7. Click Save.
  8. Observe that the page remains on the editor instead of redirecting to the API Definition page.
  9. Close the editor manually.
  10. Observe that the previous Import OpenAPI Definition dialog remains visible.

Version

4.6.0

Environment Details (with versions)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions