Skip to content

3.3 Search for resources

Vasilis Glykantzis edited this page May 16, 2018 · 3 revisions

3.3 Search for resources

The SSP allows external applications to obtain the available resources. Currently, SSP implements an endpoint which returns the list of all PUBLIC resources:

curl -x GET http://ssp.symbiote.org:8080/innkeeper/public_resources

Here an example of the response message:

[ 
  { 
    "internalIdResource":"5c:cf:7f:3a:6b:76",
    "sspIdResource":null,
    "sspIdParent":"0",
    "symIdParent":"sym48",
    "resource":{ 
      "@c":".Actuator",
      "id":"",
      "name":"ACT-aggeggio",
      "description":null,
      "interworkingServiceURL":"http://10.20.30.5/rap/v1/request",
      "locatedAt":null,
      "services":null,
      "capabilities":[ 
        { 
          "parameters":[ 
            { 
              "name":"r",
              "mandatory":true,
              "restrictions":[ 
                { 
                  "@c":".RangeRestriction",
                  "min":0.0,
                  "max":255.0
                }
              ],
              "datatype":{ 
                "@c":".PrimitiveDatatype",
                "array":false,
                "isArray":false,
                "baseDatatype":"xsd:unsignedByte"
              }
            },
            { 
              "name":"g",
              "mandatory":true,
              "restrictions":[ 
                { 
                  "@c":".RangeRestriction",
                  "min":0.0,
                  "max":255.0
                }
              ],
              "datatype":{ 
                "@c":".PrimitiveDatatype",
                "array":false,
                "isArray":false,
                "baseDatatype":"xsd:unsignedByte"
              }
            },
            { 
              "name":"b",
              "mandatory":true,
              "restrictions":[ 
                { 
                  "@c":".RangeRestriction",
                  "min":0.0,
                  "max":255.0
                }
              ],
              "datatype":{ 
                "@c":".PrimitiveDatatype",
                "array":false,
                "isArray":false,
                "baseDatatype":"xsd:unsignedByte"
              }
            }
          ],
          "effects":null,
          "name":"RGBCapability"
        }
      ]
    }
  }
]