Plugin Parameter item

Read-only

This resource type refers to a plugin parameter item.

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

"rel": "plugin_param"

GET /api/v1/parameters/(int: parameter_id)/
Synopsis:Gets a plugin parameter.

Example request:

GET /api/v1/parameters/12/ 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/parameters/12/",
        "items": [
            {
                "data": [
                    {
                        "name": "name",
                        "value": "dir"
                    },
                    {
                        "name": "type",
                        "value": "string"
                    },
                    {
                        "name": "optional",
                        "value": true
                    },
                    {
                        "name": "default",
                        "value": "./"
                    },
                    {
                        "name": "help",
                        "value": "look up directory"
                    }
                ],
                "href": "https://localhost:8000/api/v1/plugins/parameters/12/",
                "links": [
                    {
                        "href": "https://localhost:8000/api/v1/plugins/12/",
                        "rel": "plugin"
                    }
                ]
            }
        ],
        "links": [],
        "version": "1.0"
    }
}
Request Headers:
 
  • Accept – application/vnd.collection+json
Response Headers:
 
Status Codes:

Properties (API semantic descriptors):

  • name (string) – parameter’s name
  • type (string) – paremeter’s type. Any of the strings ‘string’, ‘integer’, ‘float’ or ‘boolean’
  • optional (boolean) – indicates whether the parameter has a default value and is not required in requests
  • default (string) – a string representation of the parameter’s default value Only available if the value of the “optional” property is True
  • help (string) – a description of the parameter

Link Relations:

  • plugin – links to the corresponding plugin