-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(rest): Create new endpoint to cancel all scheduled services. #2238
feat(rest): Create new endpoint to cancel all scheduled services. #2238
Conversation
0ceafcb
to
8e272bc
Compare
8e272bc
to
61f34e3
Compare
The Schedule resource is used to get and list the Schedule requests. | ||
|
||
[[unschedule-services]] | ||
==== cancle all schedule. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change text to Cancel all Scheduled Services.
cancle -> Cancel
correct this at all places where cancle is used.
return resource; | ||
} | ||
|
||
@RequestMapping(value = SCHEDULE_URL + "/unscheduleAllService", method = RequestMethod.DELETE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/unscheduleAllService -> /unscheduleAllServices
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
61f34e3
to
b739bed
Compare
The Schedule resource is used to get and list the Schedule requests. | ||
|
||
[[unschedule-services]] | ||
==== cancel all schedule. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace it with Cancel all scheduled services.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
@RequestMapping(value = SCHEDULE_URL + "/unscheduleAllServices", method = RequestMethod.DELETE) | ||
public ResponseEntity<?> unscheduleAllServices()throws TException { | ||
User sw360User = restControllerHelper.getSw360UserFromAuthentication(); | ||
RequestStatus requestStatus = scheduleService.cancleAllServices(sw360User); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change service name to cancelAllServices from cancleAllServices.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
Signed-off-by: Nikesh kumar <kumar.nikesh@simens.com>
b739bed
to
3cb73c1
Compare
code looks good. |
Closes #2237
Suggest Reviewer
How To Test?
http://localhost:8080/resource/api/schedule/unscheduleAllService
Checklist
Must: