-
Notifications
You must be signed in to change notification settings - Fork 24
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
#1744
Conversation
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'd paste the spec into https://editor.swagger.io and go over the examples it generates. There are a bunch of places where the example says "string" which I think never needs to be the case cause we are very specific about what can be returned.
arbitraryData: | ||
type: array | ||
items: | ||
type: string |
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'd add a pattern here if it is hex
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.
It's not hex encoded, it's really arbitrary data.
Routes added:
consensus
/contracts
/contract
/hosts
/metric
/multipart
/object
/params
/slabbuffers
/sectors
/settings
/slabs
/state
/syncer
/system
/txpool
/upload
/wallet
/webhooks