URI Description

PC-lint Plus View REST API provides access to PC-lint Plus View data using URI paths.

Using these URIs, a REST client application will send HTTP request to PC-lint Plus View server and parse the JSON response from the server. Supported operations are standard HTTP methods GET, PUT, POST and DELETE.

PC-lint Plus View REST API URIs looks like the following:

http://localhost:8280/api/<resource-name>

Where <resource-name> is the name of the entity you want to retrieve, artifacts, projects, findings, etc…​

PC-lint Plus View REST API response is returned to the JSON format.

JSON output response for API request GET /projects
[
{
  "id": 1,
  "modelId": "software_analytics",
  "ownerId": 2,
  "name": "Earth",
  "metaProject": false,
  "multiBranch": false,
  "mainId": 1,
  "creationTime": "2025-01-22T00:14:58.000550+01:00",
  "artifactId": 1,
  "branches": {
    "main": {
      "id": 1,
      "name": "main",
      "level": {
        "id": "LEVELD",
        "icon": "/ui/squore/resource/config/models/Shared/Images/icons/levels/letters_7levels/level_d.svg"
      },
      "group": "C",
      "color": [
        130,
        196,
        240,
        255
      ],
      "projectId": 1,
      "currentVersionId": 8,
      "lastBaselineId": 6,
      "lastTask": {
        "id": 7,
        "type": "build",
        "status": {
          "id": "DONE",
          "name": "Successful"
        },
        "elapsedTime": 8867,
        "submitDate": "2025-01-22T00:16:05.000839+01:00"
      },
      "lastBuild": {
        "id": 8,
        "baseline": false,
        "analysisTime": "2025-01-22T00:16:05.000542+01:00",
        "status": {
          "id": "DONE",
          "name": "Successful"
        }
      },
      "creationTime": "2025-01-22T00:14:58.000550+01:00",
      "artifactId": 1,
      "dirty": false
    }
  }
}
]

You can find the list of available entities/resources in the API Viewer page. Where you will also find a response example for each request or end-point.