summaryrefslogtreecommitdiffstats
path: root/src/platform-info-apidef.json
blob: fb4b86338e826ed05727e0887c78adaf760b179b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  "afbidl": "0.0",
  "info": {
    "description": "Provide platform information to other bindings",
    "title": "agl-service-platform-info",
    "version": "1.0"
  },
  "c-generator": {
    "version": 3,
    "prefix": "afv_",
    "postfix": "",
    "preinit": null,
    "init": "init",
    "onevent": null,
    "scope": "static",
    "private": true
  },
  "api": {
    "name": "platform-info",
    "verbs": {
      "get": {
        "description": "Get a platform data.",
        "permissions": { "session": "check" },
        "request": { "$ref": "#/schemas/get-request" },
        "reply": { "$ref": "#/schemas/any" }
      },
      "subscribe": {
        "description": "Subscribe to changes (hotplug event, failures, ...)"
      },
      "unsubscribe": {
        "description": "Unsubscribe to changes (hotplug event, failures, ...)"
      }
    }
  },
  "schemas": {
    "any": {
      "title": "Any value",
      "type": [ "null", "boolean", "object", "array", "number", "string" ]
    },
    "get-request": {
      "type": "object",
      "properties": {
        "oneOf": [
          { "type": "string"},
          { "type": "array", "items": { "type": "string"} }
        ]
      }
    }
  }
}