Test maven file
POST {{baseUrl}}/test/maven?org=ex velit elit&repository=ex velit elit
Test for issues in Maven files.You can test your Maven packages for issues according to their manifest file using this action. It takes a JSON object containing a the target
pom.xml
.
Additional manifest files, if they are needed, like parent pom.xml
files, child poms, etc., according the the definitions in the target pom.xml
file, should be supplied in the additional
body parameter.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
org | string | The organization to test the package with. See "The Snyk organization for a request" above. | |
repository | string | The Maven repository hosting this package. The default value is Maven Central. More than one value is supported, in order. |
Request Body
{
"encoding": "${encoding}",
"files": "${files}"
}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |