diff --git a/spec/fixtures/orgs/create.def b/spec/fixtures/orgs/create.def deleted file mode 100644 index 7e19dbd..0000000 --- a/spec/fixtures/orgs/create.def +++ /dev/null @@ -1,17 +0,0 @@ -### Creates a new organization having a server-side autogenerated org_id and the given optional list of key-value-pairs. - -* return _Hash_ The created entity - -The usage of the **key 'id' is not valid** for this request and will lead to http error **400 Bad Request**. For concurrency reasons, this request demands the usage of the "If-Match"-header matching the last known state of the orgs collection represented as an ETag. This state (the ETag) can be requested by e.g. a [GET](Organizations-GET) or a [HEAD request](Organizations-HEAD). - -### Example: - -curl -XCREATE [http://api.linkedenergy.eu:1884/orgs](http://api.linkedenergy.eu:1884/orgs) - -`{ - "name": "belectric_its", - "properties": { - "type": "Grid" - }, - "id": "51c95ca4d1da60255e000003" -}` diff --git a/spec/fixtures/orgs/get.def b/spec/fixtures/orgs/get.def deleted file mode 100644 index 934f31d..0000000 --- a/spec/fixtures/orgs/get.def +++ /dev/null @@ -1,19 +0,0 @@ -### Returns a (filtered) list of organizations. - -* param **skip** _Integer_ Number of elements to skeep before start the operation -* param **take** _Integer_ Number of elements to be shown as a result -* return _Array_ List of organizations - -### Example: - -[http://api.linkedenergy.eu:1884/orgs?skip=3&take=10](http://api.linkedenergy.eu:1884/orgs?skip=3&take=10) - -`[ - { - "name": "belectric_its", - "properties": { - "type": "Grid" - }, - "id": "51c95ca4d1da60255e000003" - } -]` diff --git a/spec/fixtures/orgs/head.def b/spec/fixtures/orgs/head.def deleted file mode 100644 index f8fe7f6..0000000 --- a/spec/fixtures/orgs/head.def +++ /dev/null @@ -1,14 +0,0 @@ -### Return only the headers (not including the body) of the given resource. - -* return _String_ Returns only the set of headers related with this resource - -### Example: - -curl -XHEAD [http://api.linkedenergy.eu:1884/orgs](http://api.linkedenergy.eu:1884/orgs) - -` - HTTP/1.1 200 OK - ETag: 1234 - Content-Type: application/json; charset=UTF-8 - Content-Length: 182 -` diff --git a/spec/fixtures/orgs/monitor.def b/spec/fixtures/orgs/monitor.def deleted file mode 100644 index 512e6ed..0000000 --- a/spec/fixtures/orgs/monitor.def +++ /dev/null @@ -1,10 +0,0 @@ -### Creates and event stream that inform the users registered to it throw Server Send Events about the resource status - -* return _Void_ - -This resource must be used to register and get Server Send Events about every update, or anything relevant, happening in this -resource. - -### Example: - -curl -XMONITOR [http://api.linkedenergy.eu:1884/orgs](http://api.linkedenergy.eu:1884/orgs) diff --git a/spec/fixtures/orgs/options.def b/spec/fixtures/orgs/options.def deleted file mode 100644 index 97bdf29..0000000 --- a/spec/fixtures/orgs/options.def +++ /dev/null @@ -1,5 +0,0 @@ -### Return a list of valid HTTP methods/verbs for the given resource. - -### Example: - -curl -X OPTIONS [http://api.linkedenergy.eu:1884/orgs](http://api.linkedenergy.eu:1884/orgs) diff --git a/spec/fixtures/orgs/resource.def b/spec/fixtures/orgs/resource.def deleted file mode 100644 index a059b23..0000000 --- a/spec/fixtures/orgs/resource.def +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name" : "orgs", - "title" : "Kirchoff organizations", - "config" : { - "create" : { "url" : "/orgs", "title": "Create a new organization" }, - "get" : { "url" : "/orgs?skip=3&take10", "title": "Get\"s a list of organizations" }, - "options" : { "url" : "/orgs", "title": "Get\"s the list of valid HTTP verbs" }, - "head" : { "url" : "/orgs", "title": "Return the resource available headers" }, - "monitor" : { "url" : "/orgs", "title": "Monitor the resouce throw SSE" } - } -} diff --git a/spec/fixtures/specs.def b/spec/fixtures/specs.def deleted file mode 100644 index fe19516..0000000 --- a/spec/fixtures/specs.def +++ /dev/null @@ -1,10 +0,0 @@ -{ - "resources": { - "/orgs": { - "dir": "orgs", - "title": "The organization resources" - } - }, - "base_url" : "http://api.linkedenergy.eu:1884", - "api_version" : "1.0" -}