Class HTTPConnectionController
Inheritance
HTTPConnectionController
Assembly: WMServer.dll
Syntax
[Route("httpconnection")]
[Authorize]
[ApiController]
public class HTTPConnectionController : ControllerBase
Constructors
HTTPConnectionController(WMAppDbContext)
Constructor that injects the database context.
Declaration
public HTTPConnectionController(WMAppDbContext context)
Parameters
Methods
Clone(string, VersionCreateArgs?)
Creates a new version of the specified asset.
Declaration
[HttpPost("{id}/createVersion")]
public Task<ActionResult<IEnumerable<OpenDIHTTPConnection>>> Clone(string id, VersionCreateArgs? args = null)
Parameters
Type |
Name |
Description |
string |
id |
The identifier of the asset
|
VersionCreateArgs |
args |
Arguments for creating the new version
|
Returns
Exceptions
Commit(string)
Commits the specified asset to Head.
Declaration
[HttpPost("{id}/commitVersion")]
public Task<IActionResult> Commit(string id)
Parameters
Type |
Name |
Description |
string |
id |
The identifier of the asset
|
Returns
Exceptions
Delete(string)
Delete an existing instance of a WMHTTPConnection
Declaration
[HttpDelete("{id}")]
public Task<IActionResult> Delete(string id)
Parameters
Type |
Name |
Description |
string |
id |
|
Returns
Get()
Declaration
[HttpGet]
public Task<ActionResult<IEnumerable<OpenDIHTTPConnection>>> Get()
Returns
Get(string)
Get the WMHTTPConnection with the specified ID
Declaration
[HttpGet("{id}")]
public Task<ActionResult<OpenDIHTTPConnection>> Get(string id)
Parameters
Type |
Name |
Description |
string |
id |
|
Returns
Post(OpenDIHTTPConnection)
Create a new instance of a WMHTTPConnection
Declaration
[HttpPost]
public Task<ActionResult<OpenDIHTTPConnection>> Post(OpenDIHTTPConnection openDI_dr)
Parameters
Returns
Put(string, OpenDIHTTPConnection)
Update an existing instance of a WMHTTPConnection
Declaration
[HttpPut("{id}")]
public Task<IActionResult> Put(string id, OpenDIHTTPConnection dr_dto)
Parameters
Returns
Versions(string)
Commits the specified asset to Head.
Declaration
[HttpPost("{id}/versions")]
public Task<ActionResult<IEnumerable<VersionArgs>>> Versions(string id)
Parameters
Type |
Name |
Description |
string |
id |
The identifier of the asset
|
Returns
Exceptions