Skip to content

Instantly share code, notes, and snippets.

@larkintuckerllc
Created March 7, 2022 19:23
Show Gist options
  • Save larkintuckerllc/c96927af1f5b1bb96f88075a2e940b6c to your computer and use it in GitHub Desktop.
Save larkintuckerllc/c96927af1f5b1bb96f88075a2e940b6c to your computer and use it in GitHub Desktop.
import { createApiRef } from '@backstage/core-plugin-api';
export interface MyPluginApi {
getHealth(): Promise<{ status: string; }>;
}
export const myPluginApiRef = createApiRef<MyPluginApi>({
id: 'plugin.my-plugin.service',
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment