Forge api class, scoped to Compass graphQL requests.
new CompassApi(api: FetchAPI): CompassApi
1 2const compassApi = new CompassApi()
| Property Name | Type | Description |
|---|---|---|
| api | FetchAPI | |
| asAppRequests | CompassRequests | |
| asUserRequests | CompassRequests | |
| configAsCode | ConfigAsCodeAPI |
asApp(): CompassRequests
Authenticates with Atlassian GraphQL Gateway as your Forge app.
1 2const resp = compassApi.asApp()
asUser(): CompassRequests
Authenticates with Atlassian GraphQL Gateway as user.
1 2const resp = compassApi.asUser()
Rate this page: