Table of Contents

Class PluginRuntimeController

Namespace
Builvero.Api.Controllers
Assembly
Builvero.Api.dll

Provides runtime API endpoints for plugins (active plugins, token minting). These endpoints are used by the frontend plugin host framework.

[ApiController]
[Route("api/plugins")]
[Authorize(AuthenticationSchemes = "Bearer")]
public class PluginRuntimeController : ControllerBase
Inheritance
PluginRuntimeController
Inherited Members

Constructors

PluginRuntimeController(IPluginMarketplaceService, IPluginTokenService, ILogger<PluginRuntimeController>)

public PluginRuntimeController(IPluginMarketplaceService marketplaceService, IPluginTokenService tokenService, ILogger<PluginRuntimeController> logger)

Parameters

marketplaceService IPluginMarketplaceService
Provides runtime API endpoints for plugins (active plugins, token minting). These endpoints are used by the frontend plugin host framework.
tokenService IPluginTokenService
Provides runtime API endpoints for plugins (active plugins, token minting). These endpoints are used by the frontend plugin host framework.
logger ILogger<PluginRuntimeController>
Provides runtime API endpoints for plugins (active plugins, token minting). These endpoints are used by the frontend plugin host framework.

Methods

GetActivePlugins(string?, Guid?)

Gets active plugins for the current user (user-level and project-level where user is a member).

[HttpGet("active")]
public Task<ActionResult<List<ActivePluginDto>>> GetActivePlugins(string? scope, Guid? projectId)

Parameters

scope string
Provides runtime API endpoints for plugins (active plugins, token minting). These endpoints are used by the frontend plugin host framework.
projectId Guid?
Provides runtime API endpoints for plugins (active plugins, token minting). These endpoints are used by the frontend plugin host framework.

Returns

Task<ActionResult<List<ActivePluginDto>>>
Provides runtime API endpoints for plugins (active plugins, token minting). These endpoints are used by the frontend plugin host framework.

MintToken(MintTokenRequest)

Mints a short-lived plugin access token for an installation.

[HttpPost("token")]
[Authorize]
public Task<ActionResult<MintTokenResponse>> MintToken(MintTokenRequest request)

Parameters

request MintTokenRequest
Provides runtime API endpoints for plugins (active plugins, token minting). These endpoints are used by the frontend plugin host framework.

Returns

Task<ActionResult<MintTokenResponse>>
Provides runtime API endpoints for plugins (active plugins, token minting). These endpoints are used by the frontend plugin host framework.