Operation
post /data/npr/asonSwitchs/{cointoIdList}/switchCmd
switchCmd (switchCmd : /data/npr/asonSwitchs/{cointoIdList}/switchCmd)
switchCmd
Path parameters
Name |
IsRequired |
Description |
Enum |
---|---|---|---|
cointoIdList | required | cointoIdList | --- |
Request body
Name |
IsRequired |
Description |
Data Type |
Enum |
---|---|---|---|---|
body | optional | request | ServletWebRequest |
--- |
body2 | optional | session | HttpSession |
--- |
body3 | optional | form | String |
--- |
Return type
Responses
Response Messages |
Schema |
---|---|
200success |
NprResponse
|
201Created | --- |
401Unauthorized | --- |
403Forbidden | --- |
404Not Found | --- |
Consumes
This API call consumes the following media types via the Content-Type request header:
application/json
Example Request Data
Request for force (main/spare),manual(main,spare)--------> /data/npr/asonSwitchs/2223,2220/switchCmd Request for force(per direction),manual(per direction)---> /data/npr/asonSwitchs/2223/switchCmd
Produces
This API call produces the following media types according to the Accept request header;
the media type will be conveyed by the Content-Type response header.
text/xml
application/json
Example Response Data
{ "ok": true, "id": "2576918243249865", "responseMessage": "Could not read document: Unexpected character ('R' (code 82)): was expecting comma to separate OBJECT entries\n at [Source: java.io.PushbackInputStream@1ebb432d; line: 1, column: 140]; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('R' (code 82)): was expecting comma to separate OBJECT entries\n at [Source: java.io.PushbackInputStream@1ebb432d; line: 1, column: 140]", "responseList": null, "HTTPResponse": 200, "httpresponse": 200 }
External Docs
See Also :