Skip to content

Get source files inventory at project level

Request

Returns an inventory list of the source files associated with each library in a project. Supports filtering by library UUID using the search parameter. Example: ?search=libraryUuid==b366b0ef-b211-4c37-a47c-0077e4de709f

Security
bearer-key
Path
projectUuidstringrequired

UUID of the project

Query
limitstring, <= 10000

Specifies the maximum number of items to be returned in the response.

Default:"50"
cursorstring

Parameter indicates the starting point for retrieving results, the first call doesn't include a cursor parameter in the request, the API response includes the first set of results along with a cursor pointing to the last item retrieved.

GET
/api/v3.0/projects/{projectUuid}/dependencies/sourceFiles/inventory
curl -i -X GET \
  'https://baseUrl/api/v3.0/projects/{projectUuid}/dependencies/sourceFiles/inventory?limit=50&cursor=string' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
additionalDataobject(Provides insights into endpoint-supported pagination information.)
  • totalItems: The total count of data points returned in an API response.
Example:
{ "totalItems": "422", "next": "http://someUrl?cursor=3", "cursor": 3 }
supportTokenstring(Support Token)
Example:"1171c60d"
responseArray of objects(SourceFileInventoryDTOV3)
Response
{ "additionalData": { "totalItems": "422", "next": "http://someUrl?cursor=3", "cursor": 3 }, "supportToken": "1171c60d", "response": [ {} ] }