Class ProjectController
Inheritance
ProjectController
Assembly: WMServer.dll
Syntax
[Route("project")]
[ApiController]
[Authorize]
public class ProjectController : ControllerBase
Constructors
ProjectController(WMAppDbContext)
Get a list of the Projects to which the current user has access.
Declaration
public ProjectController(WMAppDbContext context)
Parameters
Methods
Delete(int)
Declaration
[HttpDelete("{id}")]
public void Delete(int id)
Parameters
| Type |
Name |
Description |
| int |
id |
|
GetProject(string)
Get the details of a single Project, including the list of Assets bound to it.
Declaration
[HttpGet("{id}")]
public Task<ActionResult<IEnumerable<WMProject>>> GetProject(string id)
Parameters
| Type |
Name |
Description |
| string |
id |
The ID of the Project
|
Returns
GetProjects()
Gets the list of Projects to which this user has access.
Declaration
[HttpGet]
public Task<ActionResult<IEnumerable<WMProject>>> GetProjects()
Returns
Post(WMProjectArgs)
Declaration
[HttpPost]
public Task<ActionResult<WMProject>> Post(WMProjectArgs args)
Parameters
| Type |
Name |
Description |
| WMProjectArgs |
args |
Arguments used to initialize the new Project.
|
Returns
Put(int, string)
Declaration
[HttpPut("{id}")]
public void Put(int id, string value)
Parameters