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
marketplaceServiceIPluginMarketplaceService- Provides runtime API endpoints for plugins (active plugins, token minting). These endpoints are used by the frontend plugin host framework.
tokenServiceIPluginTokenService- Provides runtime API endpoints for plugins (active plugins, token minting). These endpoints are used by the frontend plugin host framework.
loggerILogger<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
scopestring- Provides runtime API endpoints for plugins (active plugins, token minting). These endpoints are used by the frontend plugin host framework.
projectIdGuid?- 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
requestMintTokenRequest- 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.