Skip to content

[NOTE] API "DELETE /chartrepo/{repo}/charts/{name}/{version}/labels/{id}" not work as expect #45

@moooofly

Description

@moooofly

make a test from swagger UI, and get

image

image

test from CLI

[#139#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$./harborctl chartrepo chart label delete -h
This endpoint is for user to remove label from the specified chart version.

Usage:
  harborctl chartrepo chart label delete [flags]

Flags:
  -c, --chart_name string      (REQUIRED) The chart name
  -v, --chart_version string   (REQUIRED) The chart version
  -h, --help                   help for delete
  -i, --label_id int           (REQUIRED) The label ID
  -n, --project_name string    (REQUIRED) The project name

Global Flags:
      --address string   The address of target endpoint. (default "localhost")
      --config string    config file (default is $HOME/, working dir (.), and ./conf dir)
[#140#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$./harborctl chartrepo chart label delete -c redis -n charts -v 5.4.0 -i 1
==> DELETE https://localhost/api/chartrepo/charts/charts/redis/5.4.0/labels/1
<==
<== Rsp Status: 404 Not Found
<== Rsp Body: <!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>404 - Page Not Found</title>
<style>

*{
	maring: 0;
	padding: 0;
}
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnotemarkdown some conclusionsv1.6.0-66709daa

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions