Incident API can now use incident templates with Twig templating

This commit is contained in:
James Brooks
2015-11-12 14:55:25 +00:00
parent 1483863dae
commit af176d7c7a
31 changed files with 363 additions and 22 deletions

View File

@@ -73,7 +73,9 @@ class IncidentController extends AbstractApiController
Binput::get('component_id'),
Binput::get('component_status'),
Binput::get('notify', true),
Binput::get('created_at')
Binput::get('created_at'),
Binput::get('template'),
Binput::get('vars')
));
} catch (Exception $e) {
throw new BadRequestHttpException();
@@ -101,7 +103,9 @@ class IncidentController extends AbstractApiController
Binput::get('component_id'),
Binput::get('component_status'),
Binput::get('notify', true),
Binput::get('created_at')
Binput::get('created_at'),
Binput::get('template'),
Binput::get('vars')
));
} catch (Exception $e) {
throw new BadRequestHttpException();