Forge api class, scoped to Compass config as code requests
new ConfigAsCodeAPI(api: FetchAPI, userCompassRequests?: CompassRequests, appCompassRequests?: CompassRequests): ConfigAsCodeAPI
1 2const configAsCodeAPI = new ConfigAsCodeAPI( {}, {} )
Property Name | Type | Description |
---|---|---|
api | FetchAPI | |
appCompassRequests | CompassRequests | |
userCompassRequests | CompassRequests |
asApp(): ConfigAsCodeRequests
Authenticates with Atlassian GraphQL Gateway as your Forge app.
1 2const resp = configAsCodeAPI.asApp()
asUser(): ConfigAsCodeRequests
Authenticates with Atlassian GraphQL Gateway as user.
1 2const resp = configAsCodeAPI.asUser()
Rate this page: