v1

latestOpenAPI 3.1.0MIT2026-07-1718648.2 KB
filepaths

/api/filepaths

List all files touched by any commit in the database

get/api/filepaths

Query parameters

offendersboolean

Only return "known offenders", which are files that are part of at least one vulnerability fix

Response

OK

idinteger
filepathstring
slugstring

A URL-friendly conversion of a filepath to serves a unique identifier.

We use ActiveSupport's parameterize for this, which replaces most non-word characters with hyphens.

For example, for project foo and file mydir/myfile.c, it's foo-mydir-myfile-c

The filepath slug is guaranteed to be globally unique across all VHP data.

dirstring
is_codeboolean
notestring
project_idinteger