anchor.diff:              "code": "200",
               "reasonPhrase": "OK"
               }
  +            }
  +            
  +# Convenience operations [/]
  +
  +## Convenience operation - Individual Context Entity    [/contextEntities/{EntityID}]
  +
  +### Register Context  [POST]
  +
  +You may create your own request using this action. It takes a JSON
  +object containing a RegisterContextRequest message.
  +
  ++ Request (application/json)
  +
  +        {
  +        "contextRegistrations": [
  +            {
  +            "entities": [
  +                {
  +                    "type": "Room",
  +                    "isPattern": "false",
  +                    "id": "Room1"
  +                },
  +            {
  +                "type": "Room",
  +                "isPattern": "false",
  +                "id": "Room2"
  +            }
  +                        ],
  +            "attributes": [
  +                {
  +                    "name": "temperature",
  +                    "type": "float",
  +                    "isDomain": "false"
  +          },
  +            {
  +            "name": "pressure",
  +            "type": "integer",
  +            "isDomain": "false"
  +            }
  +                            ],
  +            "providingApplication": "http://mysensors.com/Rooms"
  +            }
  +            ],
  +            "duration": "P1M"
  +        }
  +
  ++ Response 201 (application/json)
  +
  +    + Headers
  +
  +            Location: /ngsi9
  +
  +    + Body
  +
  +            {
  +            "duration" : "P1M",
  +            "registrationId" : "52a744b011f5816465943d58"
  +            }
  +
  +
  +### Discover Context [GET]
  +
  +TODO
  +
  ++ Response 200 (application/json)
  +
  +    + Headers
  +
  +            Location: /ngsi9
  +
  +    + Body
  +
  +            {
  +            "contextRegistrationResponses": [
  +            {
  +            "contextRegistration": {
  +            "attributes": [
  +            {
  +              "isDomain": "false",
  +              "name": "temperature",
  +              "type": "float"
  +            }
  +            ],
  +            "entities": [
  +            {
  +              "id": "Room1",
  +              "isPattern": "false",
  +              "type": "Room"
  +            }
  +            ],
  +            "providingApplication": "http://mysensors.com/Rooms"
  +            }
  +            }
  +            ]
  +            }
  +            
  +## Convenience operation - Attribute Container of Individual Context Entity    [/contextEntities/{EntityID}/attributes]
  +
  +### Discover Context [GET]
  +
  +TODO
  +
  ++ Response 200 (application/json)
  +
  +    + Headers
  +
  +            Location: /ngsi9
  +
  +    + Body
  +
  +            {
  +            "contextRegistrationResponses": [
  +            {
  +            "contextRegistration": {
  +            "attributes": [
  +            {
  +              "isDomain": "false",
  +              "name": "temperature",
  +              "type": "float"
  +            }
  +            ],
  +            "entities": [
  +            {
  +              "id": "Room1",
  +              "isPattern": "false",
  +              "type": "Room"
  +            }
  +            ],
  +            "providingApplication": "http://mysensors.com/Rooms"
  +            }
  +            }
  +            ]
  +            }
  +            
  +## Convenience operation - Attribute of Individual Context Entity    [/contextEntities/{EntityID}/attributes/{attributeName}]
  +
  +### Discover Context [GET]
  +
  +TODO
  +
  ++ Response 200 (application/json)
  +
  +    + Headers
  +
  +            Location: /ngsi9
  +
  +    + Body
  +
  +            {
  +            "contextRegistrationResponses": [
  +            {
  +            "contextRegistration": {
  +            "attributes": [
  +            {
  +              "isDomain": "false",
  +              "name": "temperature",
  +              "type": "float"
  +            }
  +            ],
  +            "entities": [
  +            {
  +              "id": "Room1",
  +              "isPattern": "false",
  +              "type": "Room"
  +            }
  +            ],
  +            "providingApplication": "http://mysensors.com/Rooms"
  +            }
  +            }
  +            ]
  +            }
  +            
  +## Convenience operation - Context Entity Type    [/contextEntities/ContextEntityType/{typeName}]
  +
  +### Discover Context [GET]
  +
  +TODO
  +
  ++ Response 200 (application/json)
  +
  +    + Headers
  +
  +            Location: /ngsi9
  +
  +    + Body
  +
  +            {
  +            "contextRegistrationResponses": [
  +            {
  +            "contextRegistration": {
  +            "attributes": [
  +            {
  +              "isDomain": "false",
  +              "name": "temperature",
  +              "type": "float"
  +            }
  +            ],
  +            "entities": [
  +            {
  +              "id": "Room1",
  +              "isPattern": "false",
  +              "type": "Room"
  +            }
  +            ],
  +            "providingApplication": "http://mysensors.com/Rooms"
  +            }
  +            }
  +            ]
  +            }
  +
  +## Convenience operation - Attribute container of Context Entity Type    [/contextEntityTypes/{typeName}/attributes]
  +
  +### Discover Context [GET]
  +
  +TODO
  +
  ++ Response 200 (application/json)
  +
  +    + Headers
  +
  +            Location: /ngsi9
  +
  +    + Body
  +
  +            {
  +            "contextRegistrationResponses": [
  +            {
  +            "contextRegistration": {
  +            "attributes": [
  +            {
  +              "isDomain": "false",
  +              "name": "temperature",
  +              "type": "float"
  +            }
  +            ],
  +            "entities": [
  +            {
  +              "id": "Room1",
  +              "isPattern": "false",
  +              "type": "Room"
  +            }
  +            ],
  +            "providingApplication": "http://mysensors.com/Rooms"
  +            }
  +            }
  +            ]
  +            }
  +            
  +## Convenience operation - Attribute of Context Entity Type    [/contextEntityTypes/{typeName}/attributes/{attributeName}]
  +
  +### Discover Context [GET]
  +
  +TODO
  +
  ++ Response 200 (application/json)
  +
  +    + Headers
  +
  +            Location: /ngsi9
  +
  +    + Body
  +
  +            {
  +            "contextRegistrationResponses": [
  +            {
  +            "contextRegistration": {
  +            "attributes": [
  +            {
  +              "isDomain": "false",
  +              "name": "temperature",
  +              "type": "float"
  +            }
  +            ],
  +            "entities": [
  +            {
  +              "id": "Room1",
  +              "isPattern": "false",
  +              "type": "Room"
  +            }
  +            ],
  +            "providingApplication": "http://mysensors.com/Rooms"
  +            }
  +            }
  +            ]
  +            }
  +
  +## Convenience operation - Availability Subscription [/contextAvailabilitySubscriptions]
  +
  +### Create a new availability subscription [POST]
  +
  +You may create your own request using this action. It takes a JSON
  +object containing a subscribeContextAvailability message.
  +
  ++ Request (application/json)
  +
  +        {
  +        "entities": [
  +        {
  +         "type": "Room",
  +         "isPattern": "true",
  +         "id": ".*"
  +        }
  +        ],
  +        "attributes": [
  +        "temperature"
  +        ],
  +        "reference": "http://localhost:8080/accumulate",
  +        "duration": "P1M"
  +        }
  +
  ++ Response 201 (application/json)
  +
  +    + Headers
  +
  +            Location: /ngsi9
  +
  +    + Body
  +
  +            {
  +            "duration": "P1M",
  +            "subscriptionId": "52a745e011f5816465943d59"
  +            }
  +
  +## Convenience operation - Availability Subscription Container [/contextAvailabilitySubscriptions/{subscriptionID}]
  +
  +### Update Subscription [PUT]
  +
  +You may create your own request using this action. It takes a JSON
  +object containing a updateContextAvailabilitySubscriptionRequest message.
  +
  ++ Request (application/json)
  +
  +        {
  +        "entities": [
  +        {
  +         "type": "Room",
  +         "isPattern": "true",
  +         "id": ".*"
  +        }
  +        ],
  +        "attributes": [
  +        "temperature"
  +        ],
  +        "reference": "http://localhost:8080/accumulate",
  +        "duration": "P1M"
  +        }
  +
  ++ Response 201 (application/json)
  +
  +    + Headers
  +
  +            Location: /ngsi9
  +
  +    + Body
  +
  +            {
  +            "duration": "P1M",
  +            "subscriptionId": "52a745e011f5816465943d59"
  +            }
  +
  +### Cancel Subscription [DELETE]
  +
  +You may create your own request using this action. It takes a JSON
  +object containing a updateContextAvailabilitySubscriptionRequest message.
  +
  ++ Request (application/json)
  +
  +        {
  +        "entities": [
  +        {
  +         "type": "Room",
  +         "isPattern": "true",
  +         "id": ".*"
  +        }
  +        ],
  +        "attributes": [
  +        "temperature"
  +        ],
  +        "reference": "http://localhost:8080/accumulate",
  +        "duration": "P1M"
  +        }
  +
  ++ Response 201 (application/json)
  +
  +    + Headers
  +
  +            Location: /ngsi9
  +
  +    + Body
  +
  +            {
  +            "duration": "P1M",
  +            "subscriptionId": "52a745e011f5816465943d59"
               }
positive.code: 
  ## Editors
  
    + Tarek Elsaleh, UNIS
    
  ## Acknowledgements
  
  Fermin Galan (TID), Tobias Jacobs (NEC), Ken Gunner (TID), Salvatore Longo (NEC)
  
  ## Versions
  
  + This Version: http://
  + Previous version: http://
  + Latest version: http://
  
  ## Status
  
  
negative.code: FORMAT: 1A
  HOST: https://app.apiary.io/ngsi9
  TITLE: IoT Discovery GE Open API Specification
  DATE: 17/09/2016
  
  # FIWARE NGSI-9 API Core (v1)
  
  