-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend OpenAPI docs for bus API #1753
Conversation
95bccf3
to
231abdb
Compare
metric := jc.PathParam("key") | ||
if metric == "" { | ||
jc.Error(errors.New("parameter 'metric' is required"), http.StatusBadRequest) | ||
key := jc.PathParam("key") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this is even possible considering it's a path param. If key
is ""
, then the path would be different and the router would probably return a 404 before even calling the handler.
@@ -2806,6 +5502,140 @@ components: | |||
description: The total amount of memory available in bytes | |||
minimum: 1 | |||
|
|||
MultipartUpload: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be unused. Same for MultipartListPartItem
, MultipartCompletedPart
and Sector
@ChrisSchinnerl now has all routes, would like to F/U with a PR where I go over all routes in an editor and see what's missing |
1d8db55
to
add448e
Compare
Routes added:
/contract
/hosts
/host
/metric
/multipart
/objects
/object
/params
/slabbuffers
/sectors
/settings
/slabs
/state
/stats
/system
/upload
/webhooks