dkg-engine
dkg-engine copied to clipboard
Discrepancy between APIs and Open Api spec
Issue description
There appears to be a discrepancy between the content-type that APIs accept and what the Open Api spec has defined. Not a big issue, but when building an API client it will be good to know if I should be sticking with a form-data request body for now.
Expected behavior
POST requests to the query and proofs:get APIs should accept a request body of content type application/json
Actual behavior
Only form-data is accepted.
Steps to reproduce the problem
- Send a request to
queryandproofs:getwith a request body ofapplication/json, ot-node can't process. Onlymultipart/form-datalooks to be accepted.
Specifications
- Node version: v6/release/testnet branch
Contact details
Disclaimer
Please be aware that the issue reported on a public repository allows everyone to see your node logs, node details, and contact details. If you have any sensitive information, feel free to share it by sending an email to [email protected].