Integer Parameter instance

Read-only

This resource type refers to an integer plugin parameter’s instance.

In other Collection+JSON resource representations this resource type is linked by any link relation with attribute:

"rel": "int_inst"

GET /api/v1/plugins/int-parameter/(int: parameterinstance_id)/
Synopsis:Gets an integer plugin parameter’s instance.

Example request:

GET /api/v1/plugins/int-parameter/35/ HTTP/1.1
Host: localhost:8000
Accept: application/vnd.collection+json

Example response:

HTTP/1.1 200 OK
Allow: GET
Content-Type: application/vnd.collection+json

{
    "collection": {
        "href": "https://localhost:8000/api/v1/plugins/int-parameter/35/",
        "items": [
            {
                "data": [
                    {
                        "name": "param_name",
                        "value": "counts"
                    },
                    {
                        "name": "value",
                        "value": "10"
                    }
                ],
                "href": "https://localhost:8000/api/v1/plugins/int-parameter/35/",
                "links": [
                    {
                        "href": "https://localhost:8000/api/v1/plugins/instances/45/",
                        "rel": "plugin_inst"
                    },
                    {
                        "href": "https://localhost:8000/api/v1/plugins/parameters/18/",
                        "rel": "plugin_param"
                    }
                ]
            }
        ],
        "links": [],
        "version": "1.0"
    }
}
Request Headers:
 
  • Accept – application/vnd.collection+json
Response Headers:
 
Status Codes:

Properties (API semantic descriptors):

  • param_name (string) – name of the corresponding plugin parameter
  • value (int) – parameter instance’s value

Link Relations: