Class FolderController
- Namespace
- Oqtane.Controllers
- Assembly
- Oqtane.Server.dll
[Route("api/[controller]")]
public class FolderController : Controller
- Inheritance
-
object
ControllerBase
Controller
FolderController
Constructors
FolderController(IFolderRepository, IUserPermissions, ISyncManager, ILogManager, ITenantManager)
public FolderController(IFolderRepository folders, IUserPermissions userPermissions, ISyncManager syncManager, ILogManager logger, ITenantManager tenantManager)
Parameters
folders
IFolderRepository
userPermissions
IUserPermissions
syncManager
ISyncManager
logger
ILogManager
tenantManager
ITenantManager
Methods
Delete(int)
[HttpDelete("{id}")]
[Authorize(Roles = "Registered Users")]
public void Delete(int id)
Parameters
id
int
Get(int)
[HttpGet("{id}")]
public Folder Get(int id)
Parameters
id
int
Returns
- Folder
Get(string)
[HttpGet]
public IEnumerable<Folder> Get(string siteid)
Parameters
siteid
string
Returns
- IEnumerable<Folder>
GetByPath(int, string)
[HttpGet("path/{siteId}")]
public Folder GetByPath(int siteId, string path)
Parameters
siteId
int
path
string
Returns
- Folder
Post(Folder)
[HttpPost]
[Authorize(Roles = "Registered Users")]
public Folder Post(Folder folder)
Parameters
folder
Folder
Returns
- Folder
Put(int, Folder)
[HttpPut("{id}")]
[Authorize(Roles = "Registered Users")]
public Folder Put(int id, Folder folder)
Parameters
id
int
folder
Folder
Returns
- Folder
Put(int, int, int?)
[HttpPut]
[Authorize(Roles = "Registered Users")]
public void Put(int siteid, int folderid, int? parentid)
Parameters
siteid
int
folderid
int
parentid
int?