Skip to content
This repository was archived by the owner on Feb 6, 2019. It is now read-only.

Commit fd9eaa2

Browse files
authored
Merge pull request #15 from trcox/RAML-Reference
Update and cleanup RAML Specification
2 parents a92ddc8 + 2799069 commit fd9eaa2

File tree

1 file changed

+32
-11
lines changed

1 file changed

+32
-11
lines changed

src/test/resources/raml/export-client.raml

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ schemas:
1616
required: true
1717
repeat: false
1818
delete:
19-
description: Delete a client export registration by database id. Return NotFoundException (HTTP 404) if the existing export registration cannot be found by id. Return ServcieException (HTTP 503) for unknown or unanticipated issues.
19+
description: Delete a client export registration by database id. Return NotFoundException (HTTP 404) if the existing export registration cannot be found by id. Return ServiceException (HTTP 503) for unknown or unanticipated issues.
2020
displayName: delete an ExportRegistration by database generated id
2121
responses:
2222
"200":
@@ -36,7 +36,7 @@ schemas:
3636
required: true
3737
repeat: false
3838
delete:
39-
description: Delete a client export registration by name. Return NotFoundException (HTTP 404) if the existing export registration cannot be found by name. Return ServcieException (HTTP 503) for unknown or unanticipated issues.
39+
description: Delete a client export registration by name. Return NotFoundException (HTTP 404) if the existing export registration cannot be found by name. Return ServiceException (HTTP 503) for unknown or unanticipated issues.
4040
displayName: delete an ExportRegistration by unique name
4141
responses:
4242
"200":
@@ -46,15 +46,15 @@ schemas:
4646
"503":
4747
description: or unknown or unanticipated issues
4848
get:
49-
description: Fetch a client export registration by unique name. Response will be null if no export registration matches on name. Return ServcieException (HTTP 503) for unknown or unanticipated issues.
49+
description: Fetch a client export registration by unique name. Response will be null if no export registration matches on name. Return ServiceException (HTTP 503) for unknown or unanticipated issues.
5050
displayName: get an ExportRegistration by unique name
5151
responses:
5252
"200":
5353
description: the export registration matching the identifier provided
5454
body:
5555
application/json:
5656
schema: ExportRegistration
57-
example: '{"id":"57db5bd2add4d779d38ff066","created":1473993682339,"modified":1473993682339,"origin":1471806386919,"name":"OSIClient","addressable":{"id":null,"created":0,"modified":0,"origin":1471806386919,"name":"OSIMQTTBroker","protocol":"TCP","address":"tcp://m10.cloudmqtt.com","port":15421,"path":null,"publisher":"EdgeXExportPublisher","user":"hukfgtoh","password":"uP6hJLYW6Ji4","topic":"EdgeXDataTopic"},"format":"JSON","filter":{"deviceIdentifiers":["livingroomthermosat","hallwaythermostat"],"valueDescriptorIdentifiers":["temperature","humidity"]},"encryption":{"encryptionAlgorithm":"AES","encryptionKey":"123","initializingVector":"123"},"compression":"GZIP","enable":true}'
57+
example: '{"id":"57db5bd2add4d779d38ff066","created":1473993682339,"modified":1473993682339,"origin":1471806386919,"name":"OSIClient","addressable":{"id":null,"created":0,"modified":0,"origin":1471806386919,"name":"OSIMQTTBroker","protocol":"TCP","address":"m10.cloudmqtt.com","port":15421,"path":null,"publisher":"EdgeXExportPublisher","user":"hukfgtoh","password":"uP6hJLYW6Ji4","topic":"EdgeXDataTopic"},"format":"JSON","filter":{"deviceIdentifiers":["livingroomthermosat","hallwaythermostat"],"valueDescriptorIdentifiers":["temperature","humidity"]},"encryption":{"encryptionAlgorithm":"AES","encryptionKey":"123","initializingVector":"123"},"compression":"GZIP","enable":true}'
5858
"503":
5959
description: for unknown or unanticipated issues
6060
/registration/{id}:
@@ -68,34 +68,34 @@ schemas:
6868
required: false
6969
repeat: false
7070
get:
71-
description: Fetch a client export registration by id. Response will be null if no export registration matches on id. Return ServcieException (HTTP 503) for unknown or unanticipated issues.
71+
description: Fetch a client export registration by id. Response will be null if no export registration matches on id. Return ServiceException (HTTP 503) for unknown or unanticipated issues.
7272
displayName: get an ExportRegistration by database id
7373
responses:
7474
"200":
7575
description: the export registration matching the identifier provided
7676
body:
7777
application/json:
7878
schema: ExportRegistration
79-
example: '{"id":"57db5bd2add4d779d38ff066","created":1473993682339,"modified":1473993682339,"origin":1471806386919,"name":"OSIClient","addressable":{"id":null,"created":0,"modified":0,"origin":1471806386919,"name":"OSIMQTTBroker","protocol":"TCP","address":"tcp://m10.cloudmqtt.com","port":15421,"path":null,"publisher":"EdgeXExportPublisher","user":"hukfgtoh","password":"uP6hJLYW6Ji4","topic":"EdgeXDataTopic"},"format":"JSON","filter":{"deviceIdentifiers":["livingroomthermosat","hallwaythermostat"],"valueDescriptorIdentifiers":["temperature","humidity"]},"encryption":{"encryptionAlgorithm":"AES","encryptionKey":"123","initializingVector":"123"},"compression":"GZIP","enable":true}'
79+
example: '{"id":"57db5bd2add4d779d38ff066","created":1473993682339,"modified":1473993682339,"origin":1471806386919,"name":"OSIClient","addressable":{"id":null,"created":0,"modified":0,"origin":1471806386919,"name":"OSIMQTTBroker","protocol":"TCP","address":"m10.cloudmqtt.com","port":15421,"path":null,"publisher":"EdgeXExportPublisher","user":"hukfgtoh","password":"uP6hJLYW6Ji4","topic":"EdgeXDataTopic"},"format":"JSON","filter":{"deviceIdentifiers":["livingroomthermosat","hallwaythermostat"],"valueDescriptorIdentifiers":["temperature","humidity"]},"encryption":{"encryptionAlgorithm":"AES","encryptionKey":"123","initializingVector":"123"},"compression":"GZIP","enable":true}'
8080
"503":
8181
description: for unknown or unanticipated issues
8282
/registration:
8383
displayName: Export Registration Resource
8484
description: "example - http://localhost:48071/api/v1/registration"
8585
post:
86-
description: Add a new client export registration. Name must be unique across the database. Return ServcieException (HTTP 503) for unknown or unanticipated issues.
86+
description: Add a new client export registration. Name must be unique across the database. Return ServiceException (HTTP 503) for unknown or unanticipated issues.
8787
displayName: add a new client ExportRegistration
8888
body:
8989
application/json:
9090
schema: ExportRegistration
91-
example: '{"origin":1471806386919,"name":"OSIClient","addressable":{"origin":1471806386919,"name":"OSIMQTTBroker","protocol":"TCP","address":"tcp://m10.cloudmqtt.com","port":15421,"publisher":"EdgeXExportPublisher","user":"hukfgtoh","password":"uP6hJLYW6Ji4","topic":"EdgeXDataTopic"},"format":"JSON","filter":{"deviceIdentifiers":["livingroomthermosat", "hallwaythermostat"],"valueDescriptorIdentifiers":["temperature", "humidity"]},"encryption":{"encryptionAlgorithm":"AES","encryptionKey":"123","initializingVector":"123"},"compression":"GZIP","enable":true}'
91+
example: '{"origin":1471806386919,"name":"OSIClient","addressable":{"origin":1471806386919,"name":"OSIMQTTBroker","protocol":"TCP","address":"m10.cloudmqtt.com","port":15421,"publisher":"EdgeXExportPublisher","user":"hukfgtoh","password":"uP6hJLYW6Ji4","topic":"EdgeXDataTopic"},"format":"JSON","filter":{"deviceIdentifiers":["livingroomthermosat", "hallwaythermostat"],"valueDescriptorIdentifiers":["temperature", "humidity"]},"encryption":{"encryptionAlgorithm":"AES","encryptionKey":"123","initializingVector":"123"},"compression":"GZIP","enable":true}'
9292
responses:
9393
"200":
9494
description: the database generated id for the new export registration.
9595
"503":
9696
description: for unknown or unanticipated issues.
9797
put:
98-
description: Update a client export registration. Name & id are not updated as they are identifiers. Return NotFoundException (HTTP 404) if the existing export registration cannot be found by id or name. Return ServcieException (HTTP 503) for unknown or unanticipated issues.
98+
description: Update a client export registration. Name & id are not updated as they are identifiers. Return NotFoundException (HTTP 404) if the existing export registration cannot be found by id or name. Return ServiceException (HTTP 503) for unknown or unanticipated issues.
9999
displayName: update an ExportRegistration
100100
body:
101101
application/json:
@@ -109,17 +109,38 @@ schemas:
109109
"503":
110110
description: for unknown or unanticipated issues
111111
get:
112-
description: Fetch all client export registrations. Return ServcieException (HTTP 503) for unknown or unanticipated issues. No limits are exercised on this query at this time. May need to add this in the future if the number of clients is huge.
112+
description: Fetch all client export registrations. Return ServiceException (HTTP 503) for unknown or unanticipated issues. No limits are exercised on this query at this time. May need to add this in the future if the number of clients is huge.
113113
displayName: get all ExportRegistrations
114114
responses:
115115
"200":
116116
description: a list of all client export registrations
117117
body:
118118
application/json:
119119
schema: ExportRegistration
120-
example: '[{"id":"57db5bd2add4d779d38ff066","created":1473993682339,"modified":1473993682339,"origin":1471806386919,"name":"OSIClient","addressable":{"id":null,"created":0,"modified":0,"origin":1471806386919,"name":"OSIMQTTBroker","protocol":"TCP","address":"tcp://m10.cloudmqtt.com","port":15421,"path":null,"publisher":"EdgeXExportPublisher","user":"hukfgtoh","password":"uP6hJLYW6Ji4","topic":"EdgeXDataTopic"},"format":"JSON","filter":{"deviceIdentifiers":["livingroomthermosat","hallwaythermostat"],"valueDescriptorIdentifiers":["temperature","humidity"]},"encryption":{"encryptionAlgorithm":"AES","encryptionKey":"123","initializingVector":"123"},"compression":"GZIP","enable":true}]'
120+
example: '[{"id":"57db5bd2add4d779d38ff066","created":1473993682339,"modified":1473993682339,"origin":1471806386919,"name":"OSIClient","addressable":{"id":null,"created":0,"modified":0,"origin":1471806386919,"name":"OSIMQTTBroker","protocol":"TCP","address":"m10.cloudmqtt.com","port":15421,"path":null,"publisher":"EdgeXExportPublisher","user":"hukfgtoh","password":"uP6hJLYW6Ji4","topic":"EdgeXDataTopic"},"format":"JSON","filter":{"deviceIdentifiers":["livingroomthermosat","hallwaythermostat"],"valueDescriptorIdentifiers":["temperature","humidity"]},"encryption":{"encryptionAlgorithm":"AES","encryptionKey":"123","initializingVector":"123"},"compression":"GZIP","enable":true}]'
121121
"503":
122122
description: for unknown or unanticipated issues
123+
/registration/reference/{type}:
124+
displayName: Export Registration Reference Options Resource
125+
description: "example - http://localhost:48071/api/v1/registration/reference/compressions"
126+
uriParameters:
127+
type:
128+
displayName: type
129+
description: Export Client registration property type. Valid types are: "algorithms", "compressions", "formats", and "destinations".
130+
type: string
131+
required: true
132+
repeat: false
133+
get:
134+
description: Fetch all supported values for the specified Export Client registration property type. Types are algorithms, compressions, formats, and destinations. Return ServiceException (HTTP 503) for unknown type specifications.
135+
displayName: get all supported values for the specified type
136+
responses:
137+
"200":
138+
description: a list of all supported values for the specified client export registration property type
139+
body:
140+
application/json:
141+
example: '["NONE","GZIP","ZIP"]'
142+
"503":
143+
description: for unknown types or unanticipated issues
123144
/ping:
124145
displayName: Ping Resource
125146
description: "example - http://localhost:48071/api/v1/ping"

0 commit comments

Comments
 (0)