# Get project source files inventory Returns an inventory list of the source files associated with each library in a project Endpoint: GET /api/v2.0/projects/{projectToken}/sourceFiles/inventory Version: 3.0.1 Security: bearer-key ## Query parameters: - `pageSize` (string) Enter the number of items to return in each page of the result. - `page` (string) Enter the page number to display in the result. Page numbers start at 0 - `search` (any) Filter your search to return items whose property has a specific value. Use the syntax: where a colon (:) separates between property, operation and value. + Property: the name of the property of the item + Operation: + - true if the value is inside a range. Syntax: lowest value comma (,) highest value. E.g. between:2019-05-01,2019-06-01 + - true if the value is identical to this value. + - true if the property's value is contained within this value + - true if this regular expression resolves as true. The regex is not case sensitive, and special characters must be escaped with a backslash. Special characters include space, double quote ("), '', '#', '%', '{', '}', vertical bar ('|'), backslash, '^'. To pass an escaped character in a URL in Postman, encode it first. E.g. to return all items whose value begins with or , use regex:^a + Value: the value of the property. To combine multiple filters, separate each filter with a semicolon with no space. E.g. property1:operation1:value1;property2:operation2:value2 This endpoint supports filtering on the following properties and its supported operators: + lastModified:between:date1,date2. E.g. between:2019-05-01,2019-06-01 + libraryName:[like | equals | regex]:value + license:[like | regex]:value + matchType:equals:value + name:[like | equals | regex]:value + sha1:[like | equals | regex]:value - `sort` (any) Sort search results alphabetically on an item's property by entering followed by the property name. E.g. enter to sort alphabetically by their email addresses from a-z ascending.To sort in descending order (z-a), add a minus sign ('-'). E.g. . You can sort by the following properties: + lastModified + libraryName + license + matchType + name + sha1 ## Path parameters: - `projectToken` (string, required) project UUID (by running Entities - Product > Get Product Projects) or Project Token (from the Mend SCA App: tab > ). ## Response 200 fields (application/json): - `additionalData` (object) + : The total count of data points returned in an API response. + : Defines whether the current page represents the conclusion of the API response. When “true”, this signifies you are viewing the last page of the API response. When “false”, this indicates there are further pages remaining. Example: {"totalItems":"422","isLastPage":"true"} - `supportToken` (string) Example: "1171c60d" - `retVal` (array) - `retVal.uuid` (string) Example: "123e4567-e89b-12d3-a456-426655440000" - `retVal.name` (string) Example: "common.js" - `retVal.matchType` (string) Enum: "MANUAL", "AUTOMATIC" - `retVal.sha1` (string) Enum: "MANUAL", "AUTOMATIC" - `retVal.localPath` (string) Example: "C:\\Users\\" - `retVal.lastModified` (string) - `retVal.library` (object) - `retVal.library.licenses` (array) - `retVal.library.licenses.spdxName` (string) Example: "Glide" - `retVal.library.licenses.type` (string) Example: "OPEN_SOURCE" - `retVal.library.licenses.suspected` (boolean) - `retVal.library.licenses.osiApproved` (boolean) - `retVal.library.licenses.profile` (object) - `retVal.library.licenses.profile.links` (array) Example: ["http://www.opensource.org/licenses/AFL-3.0"] - `retVal.library.licenses.profile.copyrightRiskScore` (object) - `retVal.library.licenses.profile.copyrightRiskScore.explanation` (string) Example: "http://en.wikipedia.org/wiki/Academic_Free_License" - `retVal.library.licenses.profile.copyrightRiskScore.indicatingText` (string) Example: "1) Grant of Copyright License..." - `retVal.library.licenses.profile.copyrightRiskScore.riskScore` (integer) Example: 39 - `retVal.library.licenses.profile.patentAndRoyaltyRisk` (object) - `retVal.library.licenses.profile.royaltyFree` (string) Example: "Conditional" - `retVal.library.licenses.profile.copyleft` (object) - `retVal.library.licenses.profile.copyleft.description` (string) Example: "Not a CopyLeft license." - `retVal.library.licenses.profile.copyleft.displayText` (string) Example: "No" - `retVal.library.licenses.profile.linking` (object) - `retVal.library.licenses.profile.requiredNotices` (array) Example: ["Must identify specific modifications"] - `retVal.project` (object) - `retVal.project.path` (string) Example: "My Product" - `retVal.project.productName` (string) Example: "My Product" - `retVal.project.productUuid` (string) Example: "123e4567-e89b-12d3-a456-426655440000" ## Response 400 fields (*/*): - `supportToken` (string) Example: "1171c60d" ## Response 403 fields (*/*): - `supportToken` (string) Example: "1171c60d"