Project-Security-Metrics icon indicating copy to clipboard operation
Project-Security-Metrics copied to clipboard

Fix error response for API /api/1/get-project.

Open five510 opened this issue 4 years ago • 1 comments

Issue

Resolve https://github.com/ossf/Project-Security-Metrics/issues/47

Changes

  • Add Error handling for package_url param.
  • Use application/json response in case of status 400 or 404.
  • Add auto test for /api/1/get-project
  • Change setting and install for test
    • Add testserver in ALLOWED_HOSTS
    • Install django-redis

five510 avatar Sep 19 '21 07:09 five510

Hi. I'm interested in this project and I made PR for #47 (Not support turning debug mode off). Could you please check it? @scovetta

five510 avatar Sep 19 '21 07:09 five510