Skip to content

Commit

Permalink
Update TaskSchedulerDocumentation.java
Browse files Browse the repository at this point in the history
Add platform parameter

Polish on merge to fix compile time error
  • Loading branch information
w0wka91 authored and cppwfs committed Dec 7, 2021
1 parent dedf069 commit c55cf6a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ public void createSchedule() throws Exception {
post("/tasks/schedules")
.param("scheduleName", "myschedule")
.param("taskDefinitionName", "mytaskname")
.param("platform", "default")
.param("properties", "scheduler.cron.expression=00 22 17 ? *")
.param("arguments", "--foo=bar"))
.andExpect(status().isCreated())
.andDo(this.documentationHandler.document(
requestParameters(
parameterWithName("scheduleName").description("The name for the created schedule"),
parameterWithName("platform").description("The name of the platform the task is launched"),
parameterWithName("taskDefinitionName")
.description("The name of the task definition to be scheduled"),
parameterWithName("properties")
Expand Down

0 comments on commit c55cf6a

Please sign in to comment.