mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 10:15:35 +01:00
Update e2e_api_python_based_scripting_guide.md
Signed-off-by: Michael Michael <michmike@cs.stanford.edu>
This commit is contained in:
parent
d5130b9b26
commit
018469e1a2
@ -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'
|
||||
|
||||
...
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user