Algorithm Switch Interface (REST) - mobimesh/GTDemo-2015 GitHub Wiki
This interface is an extension to the public REST interface of the controller. It allows to switch the used decision algorithm during a demonstration.
Endpoint | Method | Description |
---|---|---|
/api/algorithm |
GET | Returns a list (names) of available algorithms. |
/api/algorithm/selected |
GET | Returns the currently selected algorithm. |
/api/algorithm/selected |
PUT | Sets the algorithm that should be used by the backend. |
- Request: Empty
- Response:
[
"SimpleNearestAp",
"GreedyMinActiveApsFullCoverage"
]
- Request: Empty
- Response:
{
"selected": "GreedyMinActiveApsFullCoverage"
}
- Request:
{
"selected": "GreedyMinActiveApsFullCoverage"
}
- Response: Code 204, Empty