Ejemplo n.º 1
0
 public SwaggerApiDef(IEnumerable<JobBase> triggeredJobs)
 {
     Swagger = "2.0";
     Info = new SwaggerApiDefInfo();
     Host = "placeHolder";
     Schemes = new List<String> { "https" };
     Paths = new Dictionary<string, PathItem>();
     foreach (var triggeredJob in triggeredJobs)
     {
         Paths.Add(String.Format("/api/triggeredjobs/{0}/run", triggeredJob.Name), PathItem.GetDefaultPathItem(triggeredJob.Name));
     }
 }
Ejemplo n.º 2
0
 public SwaggerApiDef(IEnumerable <JobBase> triggeredJobs)
 {
     Swagger = "2.0";
     Info    = new SwaggerApiDefInfo();
     Host    = "placeHolder";
     Schemes = new List <String> {
         "https"
     };
     Paths = new Dictionary <string, PathItem>();
     foreach (var triggeredJob in triggeredJobs)
     {
         Paths.Add(String.Format("/api/triggeredjobs/{0}/run", triggeredJob.Name), PathItem.GetDefaultPathItem(triggeredJob.Name));
     }
 }