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
Showing
2 changed files
with
3 additions
and
3 deletions
... | @@ -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 | } | ... | ... |
-
Please register or login to post a comment