@@ -14,8 +14,7 @@ public class CronTriggerController : ApiController
1414 public IEngineScheduler EngineScheduler { get ; set ; }
1515
1616 public CronTriggerController ( )
17- {
18- }
17+ { }
1918
2019 public CronTriggerController ( ESRepository < CronTrigger > repository , IEngineScheduler engineScheduler )
2120 : this ( )
@@ -24,24 +23,24 @@ public CronTriggerController(ESRepository<CronTrigger> repository, IEngineSchedu
2423 EngineScheduler = engineScheduler ;
2524 }
2625
27- // GET api/IntegrationJob
28- public IEnumerable < CronTrigger > GetIntegrationJobs ( )
26+ // GET api/CronTrigger
27+ public IEnumerable < CronTrigger > GetCronTriggers ( )
2928 {
3029 return Repository . SelectAll ( ) ;
3130 }
3231
33- // GET api/IntegrationJob /5
32+ // GET api/CronTrigger /5
3433 [ ResponseType ( typeof ( CronTrigger ) ) ]
35- public IHttpActionResult GetIntegrationJob ( string id )
34+ public IHttpActionResult GetCronTrigger ( string id )
3635 {
3736 var trigger = Repository . SelectById ( id ) ;
3837 if ( trigger == null )
3938 return NotFound ( ) ;
4039 return Ok ( trigger ) ;
4140 }
4241
43- // PUT api/IntegrationJob /5
44- public IHttpActionResult PutIntegrationJob ( string id , CronTrigger trigger )
42+ // PUT api/CronTrigger /5
43+ public IHttpActionResult PutCronTrigger ( string id , CronTrigger trigger )
4544 {
4645 if ( id != trigger . Id )
4746 return BadRequest ( ) ;
@@ -50,9 +49,9 @@ public IHttpActionResult PutIntegrationJob(string id, CronTrigger trigger)
5049 return StatusCode ( HttpStatusCode . NoContent ) ;
5150 }
5251
53- // POST api/IntegrationJob
52+ // POST api/CronTrigger
5453 [ ResponseType ( typeof ( CronTrigger ) ) ]
55- public IHttpActionResult PostIntegrationJob ( CronTrigger trigger )
54+ public IHttpActionResult PostCronTrigger ( CronTrigger trigger )
5655 {
5756 if ( trigger . CronExpressionString . IsValidCronExpression ( ) )
5857 return BadRequest ( "Cron expression is not valid: " + trigger . CronExpressionString ) ;
@@ -61,9 +60,9 @@ public IHttpActionResult PostIntegrationJob(CronTrigger trigger)
6160 return CreatedAtRoute ( "DefaultApi" , new { id = triggerWithId . Id } , triggerWithId ) ;
6261 }
6362
64- // DELETE api/IntegrationJob /5
63+ // DELETE api/CronTrigger /5
6564 [ ResponseType ( typeof ( CronTrigger ) ) ]
66- public IHttpActionResult DeleteIntegrationJob ( string id )
65+ public IHttpActionResult DeleteCronTrigger ( string id )
6766 {
6867 var trigger = Repository . SelectById ( id ) ;
6968 if ( trigger == null )
0 commit comments