mirror of
https://github.com/goharbor/harbor
synced 2025-04-13 16:10:36 +00:00
Merge pull request #7657 from zhoumeina/swagger_guide
add swagger user guide
This commit is contained in:
commit
ae3b75d33b
BIN
docs/img/api_explorer_btn.png
Normal file
BIN
docs/img/api_explorer_btn.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
BIN
docs/img/authorize.png
Normal file
BIN
docs/img/authorize.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
|
@ -30,6 +30,7 @@ This guide walks you through the fundamentals of using Harbor. You'll learn how
|
|||
* [Online Garbage Collection.](#online-garbage-collection)
|
||||
* [View build history.](#build-history)
|
||||
* [Manage robot account of a project.](#robot-account)
|
||||
* [Using API Explorer](#api-explorer)
|
||||
|
||||
## Role Based Access Control(RBAC)
|
||||
|
||||
|
@ -637,3 +638,15 @@ If you are a project admin, you can disable a Robot Account by clicking "Disable
|
|||
If you are a project admin, you can delete a Robot Account by clicking "Delete" in the `Robot Accounts` tab of a project.
|
||||

|
||||
|
||||
## API Explorer
|
||||
|
||||
Harbor integrated swagger UI from 1.8. That means all apis can be invoked through UI. Normally, user have 2 ways to navigate to API Explorer.
|
||||
|
||||
1. User can login harbor, and click the "API EXPLORER" button.All apis will be invoked with current user authorization.
|
||||

|
||||
|
||||
|
||||
2. User can navigate to swagger page by ip address by router "devcenter". For example: https://10.192.111.118/devcenter. After go to the page, need to click "authorize" button to give basic authentication to all apis. All apis will be invoked with the authorized user authorization.
|
||||

|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user