View Management

GET

https://dydra.com/system/accounts/<account name>/repositories/<repository-name>/views

Returns a json document which records the metadata about the repository views.

POST

In order to create a view, post to the abstract account resource:

https://dydra.com/system/accounts

Headers

Content-Type: application/json

Content

{"account": {"name": "<new account name>"} }

DELETE

In order to delete an view, delete the specific resource:

https://dydra.com/system/accounts/<account>/repositories/<repository>/views/<view>

GET

Retrieve metadata concerning a given view:

https://dydra.com/system/accounts/<account>/repositories/<repository>/views/<view>

Headers

Content-Type: application/json

Response

{"@type": "view",
 "name": view name,
 "location": view host-specific HTTP API URL,
 "identifier": view service metadata resource identifier
 "constructPatterns": an array of construct query predicate patterns,
 "modifyPatterns": an array of update query insertion patterns,
 "wherePatterns": an array of select query insertion patterns,
 "predicates": an array of predicate present in the view,
 "references": {"services": an array of any device locations present in the view,
                "views": an array of any view locations present in the view
                },
 "description": view description text
 }