Skip to content

Add URL to the vulnerability details view in the API serializers #1419

Description

@tdruez

For example, in the https://public.vulnerablecode.io/api/vulnerabilities/14104?format=json results, I'd like to have a field that includes the URL https://public.vulnerablecode.io/vulnerabilities/VCID-2v89-k9c8-aaah value.

This is required to provide a link to resources when displaying the API results, see aboutcode-org/dejacode#4

The field name could be something along resource_url or view_url.

Note that this should be added to all the API serializers that have a details view in the main UI, like packages.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions