-
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): endpoint to merge vendor. #2870
base: main
Are you sure you want to change the base?
Conversation
...ce-server/src/main/java/org/eclipse/sw360/rest/resourceserver/vendor/Sw360VendorService.java
Outdated
Show resolved
Hide resolved
...ce-server/src/main/java/org/eclipse/sw360/rest/resourceserver/vendor/Sw360VendorService.java
Outdated
Show resolved
Hide resolved
...ce-server/src/main/java/org/eclipse/sw360/rest/resourceserver/vendor/Sw360VendorService.java
Outdated
Show resolved
Hide resolved
540da4b
to
685d793
Compare
Signed-off-by: Rudra Chopra <[email protected]>
685d793
to
8c8359b
Compare
Made the changes. |
requestStatus = sw360VendorClient.mergeVendors(vendorTargetId, vendorSourceId, vendorSelection, user); | ||
|
||
if (requestStatus == RequestStatus.IN_USE) { | ||
throw new HttpMessageNotReadableException("Vendor already in use as source or target vendor has an open MR"); |
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.
throw new HttpMessageNotReadableException("Vendor already in use as source or target vendor has an open MR"); | |
throw new HttpMessageNotReadableException("Vendor used as source or target has an open MR"); |
summary = "Merge two vendors.", | ||
description = "Merge source vendor into target vendor.", | ||
tags = {"Vendor"} | ||
) |
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.
Please document the possible response codes generated by this endpoint (which are 4 possible ways).
You can refer to other endpoints documenting the same.
Closes: #2869
Description: this new endpoint will merge the source vendor to the target vendor.