This repository has been archived by the owner on Dec 2, 2024. It is now read-only.
plutus-chain-index swagger documentation isn't complete and/or rendering correctly #1015
Labels
bug
Something isn't working
Summary
Swagger/OpenAPI documenation is supposed to be interactive and offer the user a way into an API. Currently, a number of endpoints in the plutus-chain-index docs are incomplete and it is difficult/impossible for a new user to access these and find the right way into the endpoints.
Take for example this naive use of the tx endpoint:
Steps to reproduce the behavior
On the command line the result looks as follows:
Actual Result
Expected Result
A valid request can be built for any endpoint on the chain-index API and it will return something sensible.
Thanks to this Cardano stack exchange post, we have a way forward for this endpoint: https://cardano.stackexchange.com/questions/7714/how-to-query-the-chain-index-tx-endpoint
e.g.
This successfully returns transaction information on preprod.
Connected to: #130
Connected to #652
Connected to #651
Connected to #4
Describe the approach you would take to fix this
Add the documentation to the endpoints where there is none. The example value/schema portion of the endpoint needs to be complete and accurate. Not just "string" as this can't be reverse engineered by anyone.
An annotated error response from plutus may also be amended to describe the expected schema, i.e. when is seeks an object, what does the object look like.
Could be:
NB. Not a plutus developer, so this latter part may be out of anyone's control.
System info
Unsure as to which plutus-chain-index is being used as I am not sure version is available from the command line options.
The text was updated successfully, but these errors were encountered: