mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-28 21:37:31 +02:00
Add version API to swagger
1. Add version API to swagger 2. Update the description for query Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
parent
5ec8ff70b2
commit
208c6f6223
@ -18,6 +18,21 @@ securityDefinitions:
|
|||||||
security:
|
security:
|
||||||
- basicAuth: []
|
- basicAuth: []
|
||||||
paths:
|
paths:
|
||||||
|
/version:
|
||||||
|
get:
|
||||||
|
summary: Get API version
|
||||||
|
description: Get the version of API that supported by the Harbor instance.
|
||||||
|
tags:
|
||||||
|
- Version
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: The supported API version
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
version:
|
||||||
|
type: string
|
||||||
|
|
||||||
/chartrepo/health:
|
/chartrepo/health:
|
||||||
get:
|
get:
|
||||||
summary: Check the health of chart repository service.
|
summary: Check the health of chart repository service.
|
||||||
|
@ -641,7 +641,7 @@ paths:
|
|||||||
parameters:
|
parameters:
|
||||||
query:
|
query:
|
||||||
name: q
|
name: q
|
||||||
description: Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max]
|
description: Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max]
|
||||||
in: query
|
in: query
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
|
Loading…
Reference in New Issue
Block a user