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.

Messages

GET /api/algorithm

  • Request: Empty
  • Response:
[
"SimpleNearestAp",
"GreedyMinActiveApsFullCoverage"
]

GET /api/algorithm/selected

  • Request: Empty
  • Response:
{
    "selected": "GreedyMinActiveApsFullCoverage"
}

PUT /api/algorithm/selected

  • Request:
{
    "selected": "GreedyMinActiveApsFullCoverage"
}
  • Response: Code 204, Empty
⚠️ **GitHub.com Fallback** ⚠️