Skip to content

How can extensions introspect application artifacts #5426

@bajtos

Description

@bajtos

This story is extracted from #4099, where we researched existing LoopBack 3 components and various techniques they use.

Now we need to write documentation for extension authors to show how to solve the following use cases in LoopBack 4:

  1. Get a list of all models (entity classes) used by the application

  2. Get definition of a given model (information about properties, relations, mixins, etc.)

  3. Get a list of all remote methods (REST API endpoints) provided by a given model.

  4. Obtain a list of all REST endpoints provided by the application, including metadata about request parameters & response schema, and any other information necessary to configure reverse-proxy routing rules (Kong, nginx,
    etc.).

In most cases, the new content will be useful to authors building new LB4 components too, therefore we should structure the content in two parts:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions