-
Notifications
You must be signed in to change notification settings - Fork 12
Switch Interface
#Get Switch Names blah blah
##REST Sequence
GET https://<host>[:<port>]/api/switches HTTP/1.1
<--empty-->
HTTP/1.1 200 OK
{
value: {
names: [String]
}
}
HTTP/1.1 200 OK
{
error: {
message: String,
details: { <--detailed error object--> }
}
}
#Get Switch blah blah
##REST Sequence
GET https://<host>[:<port>]/api/switch/<name> HTTP/1.1
<--empty-->
HTTP/1.1 200 OK
{
value: {
...
}
}
HTTP/1.1 200 OK
{
error: {
message: String,
details: { <--detailed error object--> }
}
}
#CREATE Switch blah blah
##REST Sequence
POST https://<host>[:<port>]/api/switch/<name> HTTP/1.1
{
...
}
HTTP/1.1 200 OK
{
value: {
...
}
}
HTTP/1.1 200 OK
{
error: {
message: String,
details: { <--detailed error object--> }
}
}
#Update Switch blah blah
##REST Sequence
UPDATE https://<host>[:<port>]/api/switch/<name> HTTP/1.1
{
...
}
HTTP/1.1 200 OK
{
value: {
...
}
}
HTTP/1.1 200 OK
{
error: {
message: String,
details: { <--detailed error object--> }
}
}
[Home] (https://github.com/flowgrammable/flowsim/wiki)
[Subscriber Module] (https://github.com/flowgrammable/flowsim/wiki/Subscriber-Module)
[Packet Module] (https://github.com/flowgrammable/flowsim/wiki/packet-module)
[Profile Module] (https://github.com/flowgrammable/flowsim/wiki/profile-module)
[Switch Module] (https://github.com/flowgrammable/flowsim/wiki/Switch-Module)
[Database Module] (https://github.com/flowgrammable/flowsim/wiki/Database-Result-and-Error)
[Server Module] (https://github.com/flowgrammable/flowsim/wiki/Server-Module)
[Function Results] (https://github.com/flowgrammable/flowsim/wiki/Function-Results)
[Development Guidelines] (https://github.com/flowgrammable/flowsim/wiki/General-Guidelines)