ot-node icon indicating copy to clipboard operation
ot-node copied to clipboard

Discrepancy between APIs and Open Api spec

Open Aescwine opened this issue 3 years ago • 0 comments

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

  1. Send a request to query and proofs:get with a request body of application/json, ot-node can't process. Only multipart/form-data looks 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].

Aescwine avatar Jan 28 '22 14:01 Aescwine