Revise Mastership REST API to use synchronous methods
- Add missing swagger docs
- Add missing unit tests
Change-Id: I21a20410ea322e7893c5c0c48f5d9fd0f2f9dfe1
diff --git a/web/api/src/main/resources/definitions/DeviceIds.json b/web/api/src/main/resources/definitions/DeviceIds.json
new file mode 100644
index 0000000..9911022
--- /dev/null
+++ b/web/api/src/main/resources/definitions/DeviceIds.json
@@ -0,0 +1,20 @@
+{
+ "type": "object",
+ "title": "deviceIds",
+ "required": [
+ "deviceIds"
+ ],
+ "properties": {
+ "deviceIds": {
+ "type": "array",
+ "xml": {
+ "name": "deviceId",
+ "wrapped": true
+ },
+ "items": {
+ "type": "string",
+ "example": "of:0000000000000001"
+ }
+ }
+ }
+}