Skip to content

Instantly share code, notes, and snippets.

@fgalan
Created September 3, 2013 10:26
Show Gist options
  • Save fgalan/6422169 to your computer and use it in GitHub Desktop.
Save fgalan/6422169 to your computer and use it in GitHub Desktop.
RESTClient requests file to import
{"version test":{"method":"GET","url":"http://orion.lab.fi-ware.eu:1026/version","body":"","overrideMimeType":false,"headers":[["Accept","application/xml"],["X-Auth-Token","G9navVhAoUNU0jrmzcPcxd4FCgAcF9xDKW8v6awQuubUAgjwnsSMAucZM1mFO0-mAzoJZW1bd0hZeqBupfM8wQ"]]},"discoverContextAvailability":{"method":"POST","url":"http://orion.lab.fi-ware.eu:1026/ngsi9/discoverContextAvailability","body":"<?xml version=\"1.0\"?>\n<discoverContextAvailabilityRequest>\n <entityIdList>\n <entityId type=\"Room\" isPattern=\"false\">\n <id>Room1</id>\n </entityId>\n </entityIdList>\n <attributeList>\n <attribute>temperature</attribute>\n </attributeList>\n</discoverContextAvailabilityRequest>","overrideMimeType":false,"headers":[["Content-Type","application/xml"],["X-Auth-Token","G9navVhAoUNU0jrmzcPcxd4FCgAcF9xDKW8v6awQuubUAgjwnsSMAucZM1mFO0-mAzoJZW1bd0hZeqBupfM8wQ"]]},"updateContext":{"method":"POST","url":"http://orion.lab.fi-ware.eu:1026/ngsi10/updateContext","body":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<updateContextRequest>\n <contextElementList>\n <contextElement>\n <entityId type=\"Room\" isPattern=\"false\">\n <id>Room1</id>\n </entityId>\n <contextAttributeList>\n <contextAttribute>\n <name>temperature</name>\n <type>centigrade</type>\n <contextValue>26.5</contextValue>\n </contextAttribute>\n </contextAttributeList>\n </contextElement>\n </contextElementList>\n <updateAction>Update</updateAction>\n</updateContextRequest>","overrideMimeType":false,"headers":[["Content-Type","application/xml"],["X-Auth-Token","G9navVhAoUNU0jrmzcPcxd4FCgAcF9xDKW8v6awQuubUAgjwnsSMAucZM1mFO0-mAzoJZW1bd0hZeqBupfM8wQ"]]},"queryContext":{"method":"POST","url":"http://orion.lab.fi-ware.eu:1026/ngsi10/queryContext","body":"<queryContextRequest>\n <entityIdList>\n <entityId type=\"Room\" isPattern=\"false\">\n <id>Room1</id>\n </entityId>\n </entityIdList>\n <attributeList>\n <attribute>temperature</attribute>\n </attributeList>\n</queryContextRequest>","overrideMimeType":false,"headers":[["Content-Type","application/xml"],["X-Auth-Token","G9navVhAoUNU0jrmzcPcxd4FCgAcF9xDKW8v6awQuubUAgjwnsSMAucZM1mFO0-mAzoJZW1bd0hZeqBupfM8wQ"]]},"subscribeContext ONTIMIEINTERVAL":{"method":"POST","url":"http://orion.lab.fi-ware.eu:1026/ngsi10/subscribeContext","body":"<?xml version=\"1.0\"?>\n<subscribeContextRequest>\n <entityIdList>\n <entityId type=\"Room\" isPattern=\"false\">\n <id>Room1</id>\n </entityId>\n </entityIdList>\n <attributeList>\n <attribute>temperature</attribute>\n </attributeList>\n <reference>http://localhost:1028/echo</reference>\n <duration>P1M</duration>\n <notifyConditions>\n <notifyCondition>\n <type>ONTIMEINTERVAL</type>\n <condValueList>\n <condValue>PT10S</condValue>\n </condValueList>\n </notifyCondition>\n </notifyConditions>\n</subscribeContextRequest>","overrideMimeType":false,"headers":[["Content-Type","application/xml"],["X-Auth-Token","G9navVhAoUNU0jrmzcPcxd4FCgAcF9xDKW8v6awQuubUAgjwnsSMAucZM1mFO0-mAzoJZW1bd0hZeqBupfM8wQ"]]},"unsubscribeContext":{"method":"POST","url":"http://orion.lab.fi-ware.eu:1026/ngsi10/unsubscribeContext","body":"<?xml version=\"1.0\"?>\n<unsubscribeContextRequest>\n <subscriptionId></subscriptionId>\n</unsubscribeContextRequest>","overrideMimeType":false,"headers":[["Content-Type","application/xml"],["X-Auth-Token","G9navVhAoUNU0jrmzcPcxd4FCgAcF9xDKW8v6awQuubUAgjwnsSMAucZM1mFO0-mAzoJZW1bd0hZeqBupfM8wQ"]]},"subscribeContext ONCHANGE":{"method":"POST","url":"http://orion.lab.fi-ware.eu:1026/ngsi10/subscribeContext","body":"<?xml version=\"1.0\"?>\n<subscribeContextRequest>\n <entityIdList>\n <entityId type=\"Room\" isPattern=\"false\">\n <id>Room2</id>\n </entityId>\n </entityIdList>\n <attributeList>\n <attribute>temperature</attribute>\n </attributeList>\n <reference>http://localhost:1028/echo</reference>\n <duration>P1M</duration>\n <notifyConditions>\n <notifyCondition>\n <type>ONCHANGE</type>\n <condValueList>\n <condValue>temperature</condValue>\n </condValueList>\n </notifyCondition>\n </notifyConditions>\n</subscribeContextRequest>","overrideMimeType":false,"headers":[["Content-Type","application/xml"],["X-Auth-Token","G9navVhAoUNU0jrmzcPcxd4FCgAcF9xDKW8v6awQuubUAgjwnsSMAucZM1mFO0-mAzoJZW1bd0hZeqBupfM8wQ"]]},"subscribeContextAvailability":{"method":"POST","url":"http://orion.lab.fi-ware.eu:1026/ngsi9/subscribeContextAvailability","body":"<subscribeContextAvailabilityRequest>\n <entityIdList>\n <entityId type=\"Car\" isPattern=\"true\">\n <id>Car.*</id>\n </entityId>\n </entityIdList>\n <attributeList/>\n <reference>http://localhost:1028/echo</reference>\n <duration>P1M</duration>\n</subscribeContextAvailabilityRequest>","overrideMimeType":false,"headers":[["Content-Type","application/xml"],["X-Auth-Token","G9navVhAoUNU0jrmzcPcxd4FCgAcF9xDKW8v6awQuubUAgjwnsSMAucZM1mFO0-mAzoJZW1bd0hZeqBupfM8wQ"]]},"registerContext - Car":{"method":"POST","url":"http://orion.lab.fi-ware.eu:1026/ngsi9/registerContext","body":"<?xml version=\"1.0\"?>\n<registerContextRequest>\n <contextRegistrationList>\n <contextRegistration>\n <entityIdList>\n <entityId type=\"Car\" isPattern=\"false\">\n <id>Car1</id>\n </entityId>\n </entityIdList>\n <contextRegistrationAttributeList>\n <contextRegistrationAttribute>\n <name>speed</name>\n <type>km_per_hour</type>\n <isDomain>false</isDomain>\n </contextRegistrationAttribute>\n </contextRegistrationAttributeList>\n <providingApplication>http://mysensors.com/Car</providingApplication>\n </contextRegistration>\n </contextRegistrationList>\n <duration>P1M</duration>\n</registerContextRequest>","overrideMimeType":false,"headers":[["Content-Type","application/xml"],["X-Auth-Token","G9navVhAoUNU0jrmzcPcxd4FCgAcF9xDKW8v6awQuubUAgjwnsSMAucZM1mFO0-mAzoJZW1bd0hZeqBupfM8wQ"]]},"registerContext - Room":{"method":"POST","url":"http://orion.lab.fi-ware.eu:1026/ngsi9/registerContext","body":"<?xml version=\"1.0\"?>\n<registerContextRequest>\n <contextRegistrationList>\n <contextRegistration>\n <entityIdList>\n <entityId type=\"Room\" isPattern=\"false\">\n <id>Room1</id>\n </entityId>\n </entityIdList>\n <contextRegistrationAttributeList>\n <contextRegistrationAttribute>\n <name>temperature</name>\n <type>centigrade</type>\n <isDomain>false</isDomain>\n </contextRegistrationAttribute>\n </contextRegistrationAttributeList>\n <providingApplication>http://mysensors.com/Rooms</providingApplication>\n </contextRegistration>\n </contextRegistrationList>\n <duration>P1M</duration>\n</registerContextRequest>","overrideMimeType":false,"headers":[["Content-Type","application/xml"],["X-Auth-Token","G9navVhAoUNU0jrmzcPcxd4FCgAcF9xDKW8v6awQuubUAgjwnsSMAucZM1mFO0-mAzoJZW1bd0hZeqBupfM8wQ"]]},"unsubscribeContextAvailability":{"method":"POST","url":"http://orion.lab.fi-ware.eu:1026/ngsi9/unsubscribeContextAvailability","body":"<unsubscribeContextAvailabilityRequest>\n <subscriptionId></subscriptionId>\n</unsubscribeContextAvailabilityRequest>","overrideMimeType":false,"headers":[["Content-Type","application/xml"],["X-Auth-Token","G9navVhAoUNU0jrmzcPcxd4FCgAcF9xDKW8v6awQuubUAgjwnsSMAucZM1mFO0-mAzoJZW1bd0hZeqBupfM8wQ"]]},"unsubscribeContext - old":{"method":"POST","url":"http://localhost:10026/ngsi10/unsubscribeContext","body":"<?xml version=\"1.0\"?>\n<unsubscribeContextRequest>\n <unsubscribeContext>\n <subscriptionId></subscriptionId>\n </unsubscribeContext>\n</unsubscribeContextRequest>","overrideMimeType":false,"headers":[["Content-Type","application/xml"]]},"queryContext - RASPBERRY":{"method":"POST","url":"http://orion.lab.fi-ware.eu:1026/ngsi10/queryContext","body":"<queryContextRequest>\n <entityIdList>\n <entityId type=\"Sensor\" isPattern=\"false\">\n <id>UKCAMPUSPARTY.4IN1:2E:36:21:0001</id>\n </entityId>\n </entityIdList>\n <attributeList>\n <attribute>Move</attribute>\n <attribute>illuminance</attribute>\n <attribute>temperature</attribute>\n <attribute>relativeHumidity</attribute>\n </attributeList>\n </queryContextRequest>","overrideMimeType":false,"headers":[["Content-Type","application/xml"],["X-Auth-Token","G9navVhAoUNU0jrmzcPcxd4FCgAcF9xDKW8v6awQuubUAgjwnsSMAucZM1mFO0-mAzoJZW1bd0hZeqBupfM8wQ"]]},"GET Cosmos file":{"method":"GET","url":"http://130.206.81.25:14000/webhdfs/v1/user/livedemo/OUTSMART.NODE_3510-Node-batteryCharge-urn_x_ogc_def_phenomenon_IDAS_1.0_batteryCharge.txt?op=open&user.name=livedemo","body":"<queryContextRequest>\n <entityIdList>\n <entityId type=\"Node\" isPattern=\"true\">\n <id>.*</id>\n </entityId>\n </entityIdList>\n <attributeList/>\n</queryContextRequest>","overrideMimeType":false,"headers":[]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment