X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnorthbound%2Fswitchmanager%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fswitchmanager%2Fnorthbound%2FSwitchNorthbound.java;fp=opendaylight%2Fnorthbound%2Fswitchmanager%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fswitchmanager%2Fnorthbound%2FSwitchNorthbound.java;h=8eff06a763692a4774afe57c7b6a816a0a07d2f3;hb=6f01f779f1e8281274d0a32013fb6b6e6227d1e4;hp=1777f1a8edcfc0f991acd65ccce6bda77b673ae3;hpb=00a1c2a7297e0d9e00e453c2e8b52471d01dc4c7;p=controller.git diff --git a/opendaylight/northbound/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/northbound/SwitchNorthbound.java b/opendaylight/northbound/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/northbound/SwitchNorthbound.java index 1777f1a8ed..8eff06a763 100644 --- a/opendaylight/northbound/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/northbound/SwitchNorthbound.java +++ b/opendaylight/northbound/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/northbound/SwitchNorthbound.java @@ -117,10 +117,10 @@ public class SwitchNorthbound { * * Example: * - * RequestURL: + * Request URL: * http://localhost:8080/controller/nb/v2/switchmanager/default/nodes * - * Response in XML: + * Response body in XML: * <?xml version="1.0" encoding="UTF-8" standalone="yes"?> * <list> * <nodeProperties> @@ -155,10 +155,41 @@ public class SwitchNorthbound { * </nodeProperties> * </list> * - * Response in JSON: - * {"nodeProperties":[{"node":{"id":"00:00:00:00:00:00:00:02","type":"OF"},"properties":{"tables":{"value":"-1"}, - * "description":{"value":"None"},"actions":{"value":"4095"},"macAddress":{"value":"00:00:00:00:00:02"},"capabilities" - * :{"value":"199"},"timeStamp":{"value":"1377291227877","name":"connectedSince"},"buffers":{"value":"256"}}}]} + * Response body in JSON: + * { + * "nodeProperties":[ + * { + * "node":{ + * "id":"00:00:00:00:00:00:00:02", + * "type":"OF" + * }, + * "properties":{ + * "tables":{ + * "value":"-1" + * }, + * "description":{ + * "value":"None" + * }, + * "actions":{ + * "value":"4095" + * }, + * "macAddress":{ + * "value":"00:00:00:00:00:02" + * }, + * "capabilities":{ + * "value":"199" + * }, + * "timeStamp":{ + * "value":"1377291227877", + * "name":"connectedSince" + * }, + * "buffers":{ + * "value":"256" + * } + * } + * } + * ] + * } * * */ @@ -233,7 +264,7 @@ public class SwitchNorthbound { * * Example: * - * RequestURL: + * Request URL: * http://localhost:8080/controller/nb/v2/switchmanager/default/node/OF/00:00:00:00:00:00:00:03/property/description/Switch3 * * @@ -308,7 +339,7 @@ public class SwitchNorthbound { * * Example: * - * RequestURL: + * Request URL: * http://localhost:8080/controller/nb/v2/switchmanager/default/node/OF/00:00:00:00:00:00:00:03/property/forwarding * * @@ -389,10 +420,10 @@ public class SwitchNorthbound { * * Example: * - * RequestURL: + * Request URL: * http://localhost:8080/controller/nb/v2/switchmanager/default/node/OF/00:00:00:00:00:00:00:01 * - * Response in XML: + * Response body in XML: * <?xml version="1.0" encoding="UTF-8" standalone="yes"?> * <list> * <nodeConnectorProperties> @@ -418,9 +449,32 @@ public class SwitchNorthbound { * </nodeConnectorProperties> * </list> * - * Response in JSON: - * {"nodeConnectorProperties":[{"nodeconnector":{"node":{"id":"00:00:00:00:00:00:00:01","type":"OF"},"id":"2","type":"OF"}, - * "properties":{"state":{"value":"1"},"config":{"value":"1"},"name":{"value":"L1_2-C2_1"}}}]} + * Response body in JSON: + * { + * "nodeConnectorProperties":[ + * { + * "nodeconnector":{ + * "node":{ + * "id":"00:00:00:00:00:00:00:01", + * "type":"OF" + * }, + * "id":"2", + * "type":"OF" + * }, + * "properties":{ + * "state":{ + * "value":"1" + * }, + * "config":{ + * "value":"1" + * }, + * "name":{ + * "value":"L1_2-C2_1" + * } + * } + * } + * ] + * } * * */ @@ -502,7 +556,7 @@ public class SwitchNorthbound { * * Example: * - * RequestURL: + * Request URL: * http://localhost:8080/controller/nb/v2/switchmanager/default/nodeconnector/OF/00:00:00:00:00:00:00:01/OF/2/property/bandwidth/1 * * @@ -582,7 +636,7 @@ public class SwitchNorthbound { * * Example: * - * RequestURL: + * Request URL: * http://localhost:8080/controller/nb/v2/switchmanager/default/nodeconnector/OF/00:00:00:00:00:00:00:01/OF/2/property/bandwidth * * @@ -638,7 +692,7 @@ public class SwitchNorthbound { * * Example: * - * RequestURL: + * Request URL: * http://localhost:8080/controller/nb/v2/switchmanager/default/save * *