We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a97b5bd commit 4ca07a9Copy full SHA for 4ca07a9
vulnerabilities/api_v2.py
@@ -7,6 +7,7 @@
7
# See https://aboutcode.org for more information about nexB OSS projects.
8
#
9
10
+
11
from rest_framework import serializers
12
from rest_framework import viewsets
13
from rest_framework.response import Response
@@ -35,6 +36,7 @@ class VulnerabilityReferenceV2Serializer(serializers.ModelSerializer):
35
36
reference_type = serializers.CharField()
37
reference_id = serializers.CharField()
38
39
40
class Meta:
41
model = VulnerabilityReference
42
fields = ["url", "reference_type", "reference_id"]
vulnerabilities/v2_api.py
0 commit comments