[tune] Support RESTful API for the Web Server (#4080)

Change the client/server API to RESTful design. This includes resource modeling, model URI's, and correct HTTP methods.
This commit is contained in:
Adi Zimmerman
2019-02-26 21:56:02 -08:00
committed by Richard Liaw
parent 33663bef94
commit 5cf388f29d
5 changed files with 209 additions and 112 deletions
+4 -9
View File
@@ -8,7 +8,7 @@
"source": [
"from ray.tune.web_server import TuneClient\n",
"\n",
"manager = TuneClient(tune_address=\"localhost:4321\")\n",
"manager = TuneClient(tune_address=\"localhost\", port_forward=4321)\n",
"\n",
"x = manager.get_all_trials()\n",
"\n",
@@ -19,7 +19,6 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true,
"scrolled": false
},
"outputs": [],
@@ -31,9 +30,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"import yaml\n",
@@ -45,9 +42,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"name, spec = [x for x in d.items()][0]"
@@ -79,7 +74,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.2"
"version": "3.6.8"
}
},
"nbformat": 4,