go-gogs-client icon indicating copy to clipboard operation
go-gogs-client copied to clipboard

Wiki Page for Issue Label is missing parameter section for adding a label to an issue

Open hhenkel opened this issue 9 years ago • 4 comments

https://github.com/gogits/go-gogs-client/wiki/Issues-Labels#add-labels-to-an-issue describes a POST request and from the context it seems to require a parameter "labels" from the type array.

hhenkel avatar Aug 30 '16 10:08 hhenkel

Same is valid for https://github.com/gogits/go-gogs-client/wiki/Issues-Labels#remove-a-label-from-an-issue

hhenkel avatar Aug 30 '16 10:08 hhenkel

Example of https://github.com/gogits/go-gogs-client/wiki/Issues-Labels#add-labels-to-an-issue is given, https://github.com/gogits/go-gogs-client/wiki/Issues-Labels#remove-a-label-from-an-issue does not need parameter.

unknwon avatar Aug 30 '16 11:08 unknwon

If you want to be somehow consistent you then need to decide which route to go as for https://github.com/gogits/go-gogs-client/wiki/Issues-Labels#create-a-label you're providing information on the parameters and an example. The remove actions seems to need a parameter - at least the example suggests that.

hhenkel avatar Aug 30 '16 11:08 hhenkel

I'm even struggling which tool to host API docs....

unknwon avatar Aug 30 '16 11:08 unknwon