v1

latestOpenAPI 3.0.12026-08-06151265417.9 KB
Dependencies Source Files

Get Mend library suggestions for source files at application level

Returns Mend library suggestions for the specified source file UUIDs. Request body requires: sourceFileUuids (array), recommendedForAllFiles (boolean). Supports same search filters as searchForMatch: date, license, name, owner, version.

post/api/v3.0/applications/{applicationUuid}/dependencies/sourceFiles/matchSuggestions

Path parameters

applicationUuidstring required

Application UUID (Administration > Applications)

Request body

sourceFileUuidsstring[] required
recommendedForAllFilesboolean required

Flag indicating whether to get recommendations that apply to all specified files. Required field.

applicationUuidsstring[]

Example request

{
  "sourceFileUuids": [
    "123e4567-e89b-12d3-a456-426655440000"
  ],
  "applicationUuids": [
    "123e4567-e89b-12d3-a456-426655440000"
  ]
}

Response

OK

supportTokenstring

Example response

{
  "supportToken": "1171c60d",
  "response": [
    {
      "name": "openssl",
      "sha1": "49f6cb968ff63793f6671d9026fb2a7034dad79a",
      "licenses": [
        {
          "name": "MIT",
          "severity": "High"
        }
      ],
      "version": "OpenSSL_1_0_1",
      "owner": "openssl",
      "url": "https://github.com/openssl/openssl.git",
      "date": "2012-03-14T12:39:00Z",
      "matchSuggestionId": "ZWJlMTZhZjYtMmE2YS00MWQ1LWFiNTQtYWQ3YWE3OWZhNzFl"
    }
  ]
}