moooofly
moooofly
There are some open PRs that haven't been addressed, and many issues here and there.
ref: https://github.com/goharbor/harbor/blob/master/docs/configure_swagger.md ## Viewing Harbor REST API directly - Find [`swagger.yaml` file under the docs directory in Harbor project](https://github.com/goharbor/harbor/blob/master/docs/swagger.yaml); - Paste all its content into the online Swagger Editor at...
## STATUS - `harbor-go-client` is developed based on harbor v1.5.0 (API version 1.4.0), so it should be compatible with harbor v1.5.0 and below. - `harborctl` (WIP) is developed based on...
by swagger file definition, user can create member relationship for a project with "POST /projects/{project_id}/members". ![image](https://user-images.githubusercontent.com/7439290/47784714-5b596c80-dd41-11e8-811e-4e9159516124.png) Currently, `user_member` is supported, that is, you can only update `role_id` with one of...
The parameter definition of API "PUT /projects/{project_id}/metadatas/{meta_name}" should be like "POST /projects/{project_id}/metadatas" dose, namely ``` // metadata { "meta_name":"string" } ``` by swagger UI now ![image](https://user-images.githubusercontent.com/7439290/47772380-79af7000-dd21-11e8-8b37-0c925d3a6584.png) ![image](https://user-images.githubusercontent.com/7439290/47772435-a95e7800-dd21-11e8-8d63-78ca44b8be3a.png) ![image](https://user-images.githubusercontent.com/7439290/47772447-b4b1a380-dd21-11e8-9831-ccad6a090807.png) ![image](https://user-images.githubusercontent.com/7439290/47772471-c3985600-dd21-11e8-9b03-09121be591d5.png)
by swagger UI ![image](https://user-images.githubusercontent.com/7439290/47768932-f8ea7700-dd14-11e8-899e-656ca4457270.png) ![image](https://user-images.githubusercontent.com/7439290/47768943-069ffc80-dd15-11e8-9524-d7eb8c026d4a.png) by `harborctl` ``` [#677#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$./harborctl project metadata add -h This endpoint is aimed to add all metadatas for a project. Usage: harborctl project metadata add...
- with `boolean` type in "GET /projects" ![image](https://user-images.githubusercontent.com/7439290/47763247-e7947100-dcfa-11e8-8a72-fb3803cf73a2.png) - with `integer` type in "POST /projects" and "PUT /projects/{project_id}" ![image](https://user-images.githubusercontent.com/7439290/47763268-fbd86e00-dcfa-11e8-8041-c2277fac38a8.png) ![image](https://user-images.githubusercontent.com/7439290/47763286-07c43000-dcfb-11e8-9ce4-d35232a0611c.png)
As experiment shows, "`/api/search`" can be used without login cookie setting, which can be verified by "The Search endpoint returns information about the projects and repositories offered at public status...
as per swagger file definition, the content body of "PUT /api/projects/{project_id}" is of the format as below: ![image](https://user-images.githubusercontent.com/7439290/47702411-ca5a9680-dc57-11e8-9fcf-95c61aa2a2a1.png) but you will get ![image](https://user-images.githubusercontent.com/7439290/47702447-e3634780-dc57-11e8-8255-b061d2b099b7.png) after some experiments, the working one is...
## login as a specific user ``` $./harborctl login -u admin Password: ==> POST https://localhost/login