Skip to content

[API Explorer] Self-hosted API Explorer #559

Description

@raymondfeng

As an API developer, I would like to see the OpenAPI spec of my APIs created with LoopBack and have the web UI to visualize the API endpoints and allow me to play with the APIs.

It's important for the API Explorer to be available offline (as opposed to a version hosted on loopback.io):

  • Many enterprise users are behind a restrictive firewall/proxy that disallows access to loopback.io
  • A big part of world's population lives in places with poor/no internet access
  • People often don't have internet access when traveling (on board of a plane, etc.)

Acceptance criteria

  • Expose endpoints for OpenAPI specs in various combinations of versions and formats, such as:

    • versions: 2.0, 3.0.0
    • formats: json, yaml
  • Allow such specs to be rendered with http://editor.swagger.io/ with appropriate CORS settings.

  • Have the option to install a component to enable built-in web UI for the API explorer

Build a (new) LoopBack4 extension based on the approach we have already implemented in loopback-component-explorer. Use the latest version of swagger-ui to make sure we support both Swagger (v2) and OpenAPI (v3), see strongloop/loopback-component-explorer#209

Possibly related, but not strictly required: #691

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions