Skip to content

Commit

Permalink
API: filter vulnerabilities by external_vulnerability_id (#2937)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurek committed Jan 17, 2017
1 parent fba17a6 commit 4586132
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ralph/security/api.py
Expand Up @@ -20,6 +20,9 @@ class Meta:
class VulnerabilityViewSet(RalphAPIViewSet):
queryset = Vulnerability.objects.all()
serializer_class = VulnerabilitySerializer
filter_fields = [
'external_vulnerability_id',
]


class SecurityScanSerializer(RalphAPISerializer):
Expand Down

0 comments on commit 4586132

Please sign in to comment.