Skip to content

simonnepomuk/backstage-plugin-apicurio-registry

Repository files navigation

Apicurio Registry Plugin for Backstage

This is a Backstage plugin for Apicurio Registry, which allows you to manage and view your API schemas and artifacts.

Example of the Apicurio Page Component

Installation

To install the Apicurio Registry plugin, follow these steps:

  1. Install the plugin using Yarn:

    cd packages/app 
    yarn add @simonnepomuk/backage-plugin-apicurio-registry
  2. Add the proxy config to your app-config.yaml:

    proxy:
      '/apicurio-registry':
        target: https://<APICURIO_API_URL>/apis/registry/v3
        credentials: forward
  3. Add the UI URL to your app-config.yaml:

    apicurio:
      ui:
        baseUrl: https://<APICURIO_UI_URL>
  4. Add the Apicurio Registry Page Widget to your API entities page:

    import { ApicurioRegistryPage } from '@simonnepomuk/backage-plugin-apicurio-registry';
    
    export const entityPage = (
      <EntityLayout>
        <EntityLayout.Route path="/apicurio-registry" title="Apicurio Registry">
          <ApicurioRegistryPage />
        </EntityLayout.Route>
      </EntityLayout>
    );
  5. Add the annotations to your API entities:

    apiVersion: backstage.io/v1alpha1
    kind: API
    metadata:
      name: my-api
      annotations:
        apicur.io/registry.artifactId: <ARTIFACT_ID>
        apicur.io/registry.groupId: <GROUP_ID>
    spec:
      definition:
        $text: https://<APICURIO_API_URL>/apis/registry/v3/groups/<GROUP_ID>/artifacts/<ARTIFACT_ID>/versions/branch=latest/content

    You can also track other branches by changing the branch=latest part of the URL to the desired branch name.

About

Integration between Backstage and the Apicurio Registry in order to link APIs and their schema definitions.

Resources

Stars

Watchers

Forks

Packages

No packages published