It looks like the Swagger for `ChartVersions` and `ChartVersionDetails`
were missing fields to properly generate a client.
This fixes the problem by adding the correct `refs` so that the client
produces an output when making an API call.
In Go, this generates something like:
```Go
/*GetChartrepoRepoChartsNameVersionOK handles this case with default header values.
Successfully retrieved the chart version
*/
type GetChartrepoRepoChartsNameVersionOK struct {
Payload *models.ChartVersionDetails
}
...
/*GetChartrepoRepoChartsNameOK handles this case with default header values.
Retrieved all versions of the specified chart
*/
type GetChartrepoRepoChartsNameOK struct {
Payload models.ChartVersions
}
```
Signed-off-by: Dan Norris <dan.norris@netapp.com>
* Return 409 when user trigger another "scan all"
This commit fixes#6418, that when multiple "scan all" jobs are
triggered, the API should not return 500.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
* Update swagger to add 409 to scanAll API
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
Add API test case for garbage collection, and add swagger.yaml, GC and chart feature were updated in swagger.yaml.
Signed-off-by: danfengliu <danfengl@vmware.com>
- add new interface method to get total count of charts under namespaces by calling get index
- add new field 'chart_count' in project model
- append chart count to the project model in project API
Signed-off-by: Steven Zou <szou@vmware.com>
The swagger was a little misleading about the API to update user's
password. This commit clarifies the usage of 'old_password' and 403
status code.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
- add chart search interface method in utility handler
- update the search API handler
- update the search API UT case
Signed-off-by: Steven Zou <szou@vmware.com>
- add API route
- add DELETE chart method in utility handler of chart controller
- add UT case for the newly added methods
- update swagger.yaml to refelct the new change
Signed-off-by: Steven Zou <szou@vmware.com>
This commit is to remove the document/tests of ova from harbor repository as decide to deprecate
ova installer in the future release.
Signed-off-by: wang yan <wangyan@vmware.com>
1) Remove the previous /api/projects/?:project_id/members/:userid
2) Move the /api/projects/:project_id/projectmembers/?:pmid to
/api/projects/:project_id/members/?:pmid
3) Change the project member maintain ui to call new REST API