You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by ka...@apache.org on 2021/03/03 11:09:09 UTC
[submarine] branch master updated: SUBMARINE-750. Replace port 8080
with port 32080 in API example
This is an automated email from the ASF dual-hosted git repository.
kaihsun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/submarine.git
The following commit(s) were added to refs/heads/master by this push:
new b2facbc SUBMARINE-750. Replace port 8080 with port 32080 in API example
b2facbc is described below
commit b2facbc00f676dcd98a4cc425d049250d4793547
Author: jeff-901 <54...@users.noreply.github.com>
AuthorDate: Wed Mar 3 19:09:00 2021 +0800
SUBMARINE-750. Replace port 8080 with port 32080 in API example
* SUBMARINE-750. Replace port 8080 with 32080
* SUBMARINE-750. Replace port 8080 with 32080
---
website/docs/api/environment.md | 10 +++++-----
website/docs/api/experiment-template.md | 12 ++++++------
website/docs/api/experiment.md | 16 ++++++++--------
3 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/website/docs/api/environment.md b/website/docs/api/environment.md
index 1e577cf..44b73b3 100644
--- a/website/docs/api/environment.md
+++ b/website/docs/api/environment.md
@@ -44,7 +44,7 @@ curl -X POST -H "Content-Type: application/json" -d '
"anaconda-navigator=1.9.12=py37_0"]
}
}
-' http://127.0.0.1:8080/api/v1/environment
+' http://127.0.0.1:32080/api/v1/environment
```
**Example Response:**
@@ -77,7 +77,7 @@ curl -X POST -H "Content-Type: application/json" -d '
**Example Request:**
```sh
-curl -X GET http://127.0.0.1:8080/api/v1/environment
+curl -X GET http://127.0.0.1:32080/api/v1/environment
```
**Example Response:**
@@ -125,7 +125,7 @@ curl -X GET http://127.0.0.1:8080/api/v1/environment
**Example Request:**
```sh
-curl -X GET http://127.0.0.1:8080/api/v1/environment/my-submarine-env
+curl -X GET http://127.0.0.1:32080/api/v1/environment/my-submarine-env
```
**Example Response:**
@@ -170,7 +170,7 @@ curl -X PATCH -H "Content-Type: application/json" -d '
"alabaster=0.7.12=py37_0"]
}
}
-' http://127.0.0.1:8080/api/v1/environment/my-submarine-env
+' http://127.0.0.1:32080/api/v1/environment/my-submarine-env
```
**Example Response:**
@@ -203,7 +203,7 @@ curl -X PATCH -H "Content-Type: application/json" -d '
**Example Request:**
```sh
-curl -X DELETE http://127.0.0.1:8080/api/v1/environment/my-submarine-env
+curl -X DELETE http://127.0.0.1:32080/api/v1/environment/my-submarine-env
```
**Example Response:**
diff --git a/website/docs/api/experiment-template.md b/website/docs/api/experiment-template.md
index 0843475..f57654d 100644
--- a/website/docs/api/experiment-template.md
+++ b/website/docs/api/experiment-template.md
@@ -129,7 +129,7 @@ curl -X POST -H "Content-Type: application/json" -d '
}
}
}
-' http://127.0.0.1:8080/api/v1/template
+' http://127.0.0.1:32080/api/v1/template
```
@@ -138,7 +138,7 @@ curl -X POST -H "Content-Type: application/json" -d '
**Example Request:**
```sh
-curl -X GET http://127.0.0.1:8080/api/v1/template
+curl -X GET http://127.0.0.1:32080/api/v1/template
```
### Get experiment template
@@ -146,7 +146,7 @@ curl -X GET http://127.0.0.1:8080/api/v1/template
**Example Request:**
```sh
-curl -X GET http://127.0.0.1:8080/api/v1/template/my-tf-mnist-template
+curl -X GET http://127.0.0.1:32080/api/v1/template/my-tf-mnist-template
```
@@ -202,7 +202,7 @@ curl -X PATCH -H "Content-Type: application/json" -d '
}
}
}
-' http://127.0.0.1:8080/api/v1/template/my-tf-mnist-template
+' http://127.0.0.1:32080/api/v1/template/my-tf-mnist-template
```
> "description", "parameters", "experimentSpec", "author" etc can be updated using this API.
@@ -215,7 +215,7 @@ curl -X PATCH -H "Content-Type: application/json" -d '
**Example Request:**
```sh
-curl -X DELETE http://127.0.0.1:8080/api/v1/template/my-tf-mnist-template
+curl -X DELETE http://127.0.0.1:32080/api/v1/template/my-tf-mnist-template
```
@@ -233,5 +233,5 @@ curl -X POST -H "Content-Type: application/json" -d '
"experiment_name":"newexperiment1"
}
}
-' http://127.0.0.1:8080/api/v1/experiment/my-tf-mnist-template
+' http://127.0.0.1:32080/api/v1/experiment/my-tf-mnist-template
```
diff --git a/website/docs/api/experiment.md b/website/docs/api/experiment.md
index 8f77fc3..04c6e8b 100644
--- a/website/docs/api/experiment.md
+++ b/website/docs/api/experiment.md
@@ -54,7 +54,7 @@ curl -X POST -H "Content-Type: application/json" -d '
}
}
}
-' http://127.0.0.1:8080/api/v1/experiment
+' http://127.0.0.1:32080/api/v1/experiment
```
**Example Response:**
@@ -126,7 +126,7 @@ curl -X POST -H "Content-Type: application/json" -d '
}
}
}
-' http://127.0.0.1:8080/api/v1/experiment
+' http://127.0.0.1:32080/api/v1/experiment
```
Above example assume environment "my-submarine-env" already exists in Submarine. Please refer Environment API Reference doc to Create/Update/Delete/List Environment REST API's
@@ -174,7 +174,7 @@ Above example assume environment "my-submarine-env" already exists in Submarine.
**Example Request:**
```sh
-curl -X GET http://127.0.0.1:8080/api/v1/experiment
+curl -X GET http://127.0.0.1:32080/api/v1/experiment
```
**Example Response:**
@@ -254,7 +254,7 @@ curl -X GET http://127.0.0.1:8080/api/v1/experiment
**Example Request:**
```sh
-curl -X GET http://127.0.0.1:8080/api/v1/experiment/experiment_1592057447228_0001
+curl -X GET http://127.0.0.1:32080/api/v1/experiment/experiment_1592057447228_0001
```
**Example Response:**
@@ -326,7 +326,7 @@ curl -X PATCH -H "Content-Type: application/json" -d '
}
}
}
-' http://127.0.0.1:8080/api/v1/experiment/experiment_1592057447228_0001
+' http://127.0.0.1:32080/api/v1/experiment/experiment_1592057447228_0001
```
**Example Response:**
@@ -367,7 +367,7 @@ curl -X PATCH -H "Content-Type: application/json" -d '
**Example Request:**
```sh
-curl -X DELETE http://127.0.0.1:8080/api/v1/experiment/experiment_1592057447228_0001
+curl -X DELETE http://127.0.0.1:32080/api/v1/experiment/experiment_1592057447228_0001
```
**Example Response:**
@@ -414,7 +414,7 @@ curl -X DELETE http://127.0.0.1:8080/api/v1/experiment/experiment_1592057447228_
**Example Request:**
```sh
-curl -X GET http://127.0.0.1:8080/api/v1/experiment/logs
+curl -X GET http://127.0.0.1:32080/api/v1/experiment/logs
```
**Example Response:**
@@ -457,7 +457,7 @@ curl -X GET http://127.0.0.1:8080/api/v1/experiment/logs
**Example Request:**
```sh
-curl -X GET http://127.0.0.1:8080/api/v1/experiment/logs/experiment_1589199154923_0002
+curl -X GET http://127.0.0.1:32080/api/v1/experiment/logs/experiment_1589199154923_0002
```
**Example Response:**
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org