-
Notifications
You must be signed in to change notification settings - Fork 399
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(api): REST API to schedule the bulk-scan #2483
Conversation
This pull request has conflicts, please rebase with master to resolve those before we can evaluate the pull request. |
7af287b
to
fcb1eb2
Compare
This pull request has conflicts, please rebase with master to resolve those before we can evaluate the pull request. |
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.
Changes looks good.
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.
Tested, working as expected.
fcb1eb2
to
454eb0c
Compare
This pull request has conflicts, please rebase with master to resolve those before we can evaluate the pull request. |
@dushimsam please rebase for merge. |
Signed-off-by: dushimsam <dushsam@gmail.com>
454eb0c
to
eccede0
Compare
Done |
Update API version after merge of: fossology#2483 fossology#2517 fossology#2518 fossology#2524 fossology#2528 fossology#2529 fossology#2530 fossology#2532 fossology#2533 fossology#2534 fossology#2535 fossology#2536 fossology#2537 fossology#2538 fossology#2539 fossology#2545 fossology#2549 fossology#2576 Signed-off-by: Gaurav Mishra <mishra.gaurav@siemens.com>
Update API version after merge of: fossology#2483 fossology#2517 fossology#2518 fossology#2524 fossology#2528 fossology#2529 fossology#2530 fossology#2532 fossology#2533 fossology#2534 fossology#2535 fossology#2536 fossology#2537 fossology#2538 fossology#2539 fossology#2545 fossology#2549 fossology#2576 Signed-off-by: Gaurav Mishra <mishra.gaurav@siemens.com>
Description
Added the API to schedule the bulk scan for an item, given relevant information in the request body.
Changes
UploadTreeController
to handle the logic.index.php
) by adding a new routePOST
/uploads/{id}/items/{itemId}/bulk-scan
.openapi.yaml
file to write the new API's documentation.How to test
Make a POST request on the endpoint:
/uploads/{id}/items/{itemId}/bulk-scan
.This endpoint is expected to return the jobId which corresponds to this bulk scan.
Screenshots
Related Issue:
Fixes #2472
cc: @shaheemazmalmmd @GMishx