getLintJobResults

get

/ccadminx/v1/lintJobs/{id}

Get Lint Job Results. Returns the status of a given lint job from the extension server.

Request

Supported Media Types
  • application/json
Path Parameters
id
Type: string
Required: true
The id of the job to return the results for. Job Id is the date time the job was created in the format of yyyyMMddHHmm.
Query Parameters
extensionName
Type: string
Required: true
The name of the extension that the lint job is to be executed for.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getLintJobResults_response
Nested Schema : jsHintResults
Type: array
An array of JS Hint errors.
Nested Schema : items
Type: object
Nested Schema : errors
Type: array
An array of JS Hint errors.
Nested Schema : items
Type: object
Example application/json

[
    {
        "extensionName":"externalShippingCalculator",
        "jobId":"201612201113",
        "jsHintResults":[
            {
                "filename":"extensions\\extracted\\externalShippingCalculator\\js\\calculate-shipping-app.js",
                "totalErrors":1,
                "errors":[
                    {
                        "reason":"Missing \"use strict\" statement.",
                        "character":3,
                        "code":"E007",
                        "line":8
                    }
                ]
            },
            {
                "filename":"extensions\\extracted\\externalShippingCalculator\\tests\\calculate-shipping-test.js",
                "totalErrors":2,
                "errors":[
                    {
                        "reason":"'fs' is defined but never used.",
                        "character":5,
                        "code":"W098",
                        "line":3
                    },
                    {
                        "reason":"'path' is defined but never used.",
                        "character":5,
                        "code":"W098",
                        "line":4
                    }
                ]
            },
            {
                "filename":"extensions\\extracted\\externalShippingCalculator\\js\\lib\\calculate-shipping-demo.js",
                "totalErrors":1,
                "errors":[
                    {
                        "reason":"Strings must use singlequote.",
                        "character":35,
                        "code":"W109",
                        "line":4
                    }
                ]
            }
        ],
        "status":"succeeded"
    }
]
Default Response
The error response
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object