Class OneDriveWorkSchoolController
- Namespace
- FoundationaLLM.Core.API.Controllers
- Assembly
- FoundationaLLM.Core.API.dll
Provides methods for OneDrive integration.
[Authorize(AuthenticationSchemes = "Bearer", Policy = "MicrosoftEntraIDStandard")]
[ApiController]
[Route("instances/{instanceId}/[controller]")]
public class OneDriveWorkSchoolController : ControllerBase
- Inheritance
-
OneDriveWorkSchoolController
- Inherited Members
- Extension Methods
Constructors
OneDriveWorkSchoolController(IOrchestrationContext, IOneDriveWorkSchoolService)
The controller for OneDrive integration.
public OneDriveWorkSchoolController(IOrchestrationContext callContext, IOneDriveWorkSchoolService oneDriveWorkSchoolService)
Parameters
callContext
IOrchestrationContextThe IOrchestrationContext call context of the request being handled.
oneDriveWorkSchoolService
IOneDriveWorkSchoolService
Exceptions
Methods
Connect(string)
Connects to user's OneDrive work or school account.
[HttpPost("connect")]
public Task<IActionResult> Connect(string instanceId)
Parameters
instanceId
stringThe FoundationaLLM instance identifier.
Returns
Disconnect(string)
Disconnect from user's OneDrive work or school account.
[HttpPost("disconnect")]
public Task<IActionResult> Disconnect(string instanceId)
Parameters
instanceId
stringThe FoundationaLLM instance identifier.
Returns
Download(string, string, string, OneDriveWorkSchoolItem)
Downloads a file from the user's connected OneDrive work or school account.
[HttpPost("download")]
public Task<IActionResult> Download(string instanceId, string sessionId, string agentName, OneDriveWorkSchoolItem oneDriveWorkSchool)
Parameters
instanceId
stringThe FoundationaLLM instance identifier.
sessionId
stringThe session ID from which the file is uploaded.
agentName
stringThe agent name.
oneDriveWorkSchool
OneDriveWorkSchoolItemThe OneDrive work or school item.