This is a Backstage plugin for Apicurio Registry, which allows you to manage and view your API schemas and artifacts.
To install the Apicurio Registry plugin, follow these steps:
-
Install the plugin using Yarn:
cd packages/app yarn add @simonnepomuk/backage-plugin-apicurio-registry
-
Add the proxy config to your
app-config.yaml
:proxy: '/apicurio-registry': target: https://<APICURIO_API_URL>/apis/registry/v3 credentials: forward
-
Add the UI URL to your
app-config.yaml
:apicurio: ui: baseUrl: https://<APICURIO_UI_URL>
-
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> );
-
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.