This commit is contained in:
@@ -50,9 +50,10 @@ namespace AyaNova.Api.Controllers
|
||||
/// </summary>
|
||||
/// <param name="size">Valid values are "Small", "Medium", "Large", "Huge"</param>
|
||||
/// <param name="timeZoneOffset">Value in hours of local time zone offset from UTC / GMT. This ensures that data is generated relative to the desired time zone</param>
|
||||
/// <param name="e2e">End to end testing mode for automated testing; false is default and faster</param>
|
||||
/// <returns>Job Id</returns>
|
||||
[HttpPost("seed/{size}/{timeZoneOffset}")]
|
||||
public async Task<IActionResult> SeedTrialDatabase([FromRoute] string size, [FromRoute] decimal timeZoneOffset)
|
||||
[HttpPost("seed/{size}/{timeZoneOffset}/{variant}")]
|
||||
public async Task<IActionResult> SeedTrialDatabase([FromRoute] string size, [FromRoute] decimal timeZoneOffset, [FromRoute] bool e2e = false)
|
||||
{
|
||||
if (serverState.IsClosed)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
@@ -76,7 +77,8 @@ namespace AyaNova.Api.Controllers
|
||||
JObject o = JObject.FromObject(new
|
||||
{
|
||||
seedLevel = seedLevel,
|
||||
timeZoneOffset = timeZoneOffset
|
||||
timeZoneOffset = timeZoneOffset,
|
||||
e2e = e2e
|
||||
});
|
||||
|
||||
OpsJob j = new OpsJob();
|
||||
|
||||
Reference in New Issue
Block a user