Class ProfileController
- Namespace
- Oqtane.Controllers
- Assembly
- Oqtane.Server.dll
[Route("api/[controller]")]
public class ProfileController : Controller
- Inheritance
-
ProfileController
Constructors
ProfileController(IProfileRepository, ISyncManager, ILogManager, ITenantManager)
public ProfileController(IProfileRepository profiles, ISyncManager syncManager, ILogManager logger, ITenantManager tenantManager)
Parameters
profiles
IProfileRepository
syncManager
ISyncManager
logger
ILogManager
tenantManager
ITenantManager
Methods
Delete(int)
[HttpDelete("{id}")]
[Authorize(Policy = "Profile:Write:Administrators")]
public void Delete(int id)
Parameters
id
int
Get(int)
[HttpGet("{id}")]
[Authorize(Roles = "Registered Users")]
public Profile Get(int id)
Parameters
id
int
Returns
- Profile
Get(string)
[HttpGet]
[Authorize(Roles = "Registered Users")]
public IEnumerable<Profile> Get(string siteid)
Parameters
siteid
string
Returns
- IEnumerable<Profile>
Post(Profile)
[HttpPost]
[Authorize(Policy = "Profile:Write:Administrators")]
public Profile Post(Profile profile)
Parameters
profile
Profile
Returns
- Profile
Put(int, Profile)
[HttpPut("{id}")]
[Authorize(Policy = "Profile:Write:Administrators")]
public Profile Put(int id, Profile profile)
Parameters
id
int
profile
Profile
Returns
- Profile