diff --git a/docs/1.10/build-customize-contribute/e2e_api_python_based_scripting_guide.md b/docs/1.10/build-customize-contribute/e2e_api_python_based_scripting_guide.md index 8b1e3e58e..534898d6f 100644 --- a/docs/1.10/build-customize-contribute/e2e_api_python_based_scripting_guide.md +++ b/docs/1.10/build-customize-contribute/e2e_api_python_based_scripting_guide.md @@ -47,10 +47,9 @@ You can add both library code and script code, since not all APIs have been enca **Execution Example** - +``` root@harbor:/harbor/code/harbor# `python ./tests/apitests/python/test_add_sys_label_to_tag.py` - 2020-03-11 13:40:07,269 DEBUG Starting new HTTPS connection (1): 1.1.1.1:443 send: 'POST /api/v2.0/users HTTP/1.1\r\nHost: 1.1.1.1\r\nAccept-Encoding: identity\r\nContent-Length: 156\r\nContent-Type: application/json\r\nAccept: application/json\r\nAuthorization: Basic YWRtaW46SGFyYm9yMTIzNDU=\r\nUser-Agent: Swagger-Codegen/1.0.0/python\r\n\r\n{"username": "user-1583934007059", "role_id": 0, "password": "xxxxxxxx", "email": "realname-1583934007059@vmware.com", "realname": "realname-1583934007059"}' reply: 'HTTP/1.1 201 Created\r\n' @@ -73,3 +72,4 @@ header: Content-Security-Policy: frame-ancestors 'none' ... +```