-
Notifications
You must be signed in to change notification settings - Fork 98
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
fix(rest): create new endpoint for import spdx information in admin tab #2110
Conversation
|
||
A `IMPORT` request will import SPDX info. | ||
|
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 message to --> A POST
request will import SPDX info.
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.
@@ -35,6 +36,8 @@ | |||
import org.springframework.web.bind.annotation.RequestBody; | |||
import org.springframework.web.bind.annotation.RequestMapping; | |||
import org.springframework.web.bind.annotation.RequestMethod; | |||
import org.springframework.web.bind.annotation.RequestParam; | |||
import org.springframework.web.multipart.MultipartFile; | |||
import org.springframework.web.servlet.support.ServletUriComponentsBuilder; |
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.
Remove the above three imports as they are not used.
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.
} else { | ||
throw new HttpMessageNotReadableException("Unable to import All Spdx license. User is not admin"); | ||
} | ||
} | ||
} |
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.
Use proper indentation for the above method.
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.
9445da8
to
be18503
Compare
Signed-off-by: Nikesh kumar <[email protected]>
be18503
to
de67119
Compare
code looks good. |
Testing was successful. |
Issue: #2111
Suggest Reviewer
How To Test?
1: login sw360 with admin user
2: /resource/api/licenses/import/SPDX
Checklist
Must: