From 21f191b889ecb504fa75f6c5c5bd5cc604af821f Mon Sep 17 00:00:00 2001 From: zzxwill Date: Mon, 12 Oct 2020 15:32:07 +0800 Subject: [PATCH] Update env init API doc --- documentation/api/vela-restful-api-reference.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/documentation/api/vela-restful-api-reference.md b/documentation/api/vela-restful-api-reference.md index 95c0107f9..e6fb11c2a 100644 --- a/documentation/api/vela-restful-api-reference.md +++ b/documentation/api/vela-restful-api-reference.md @@ -32,15 +32,17 @@ the successful message. sample request: ```json -{"envName":"ccc","namespace":"ccc"} +{ + "envName": "e2", + "namespace": "e2", + "email": "e@gmail.com", + "domain": "d.com" +} ``` sample response: ```json -{ -"code": 200, -"data": "Create env succeed" -} +{"code":200,"data":"environment e2 created, Namespace: e2, Email: e@gmail.com."} ``` ### GET /api/envs/ (env list)