-
Notifications
You must be signed in to change notification settings - Fork 101
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(license): Listing obligations by license #2234
feat(license): Listing obligations by license #2234
Conversation
), | ||
responseFields( | ||
subsectionWithPath("_embedded.sw360:obligations[]title").description("The title of the obligation"), | ||
subsectionWithPath("_embedded.sw360:obligations[]obligationType").description("The obligationType of the obligation"), |
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.
I believe this should be "The type of the obligation" or "Obligation type" instead.
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.
fixed.
@@ -849,6 +849,12 @@ public List<Obligation> getObligationsByIds(Collection<String> ids) { | |||
return obligations; | |||
} | |||
|
|||
public List<Obligation> getObligationsByLicenseId(String id) throws SW360Exception { | |||
License license = getLicenseForOrganisation(id, "?"); |
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.
What is the usage of passing "?" as the organization?
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.
I was a bit confused. Thanks.
Signed-off-by: tuannn2 <[email protected]>
c49eed3
to
83a2b3a
Compare
Changes look good to me. |
Add new API Listing obligations by license
How To Test?
Checklist
Must: