Jian Li
Committed by Gerrit Code Review

BugFix: Allow to specify mastership role through REST API

In current implementation, swagger doc does match with codec impl.
With this commit, we can assign an exact mastership role for a
device through REST API.

Change-Id: I5cb3f8d478f8fe3eb22f12fc5254ed8a400d5b56
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 "required": [ 4 "required": [
5 "deviceId", 5 "deviceId",
6 "nodeId", 6 "nodeId",
7 - "mastershipRole" 7 + "role"
8 ], 8 ],
9 "properties": { 9 "properties": {
10 "deviceId": { 10 "deviceId": {
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
15 "type": "string", 15 "type": "string",
16 "example": "1" 16 "example": "1"
17 }, 17 },
18 - "mastershipRole": { 18 + "role": {
19 "type": "string", 19 "type": "string",
20 "example": "MASTER" 20 "example": "MASTER"
21 } 21 }
......
1 { 1 {
2 "type": "object", 2 "type": "object",
3 - "title": "mastershipRole", 3 + "title": "role",
4 "required": [ 4 "required": [
5 "role" 5 "role"
6 ], 6 ],
......