Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

plutus-pab - incorrect swagger documentation #651

Open
OlofBlomqvist opened this issue Jul 23, 2022 · 0 comments
Open

plutus-pab - incorrect swagger documentation #651

OlofBlomqvist opened this issue Jul 23, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@OlofBlomqvist
Copy link

Summary

The parameter 'wallet-id' used in the PAB API endpoint "/api/contract/instances/wallet/{wallet-id}" is configured to be an integer in the swagger documentation, making it impossible to call with an actual id from the swagger UI (http://localhost:9080/swagger/swagger-ui) or when using clients generated based on the swagger.json file.

Im assuming it should be a string since when calling it with an integer it says that it expectes "a hex-encoded string of 40 characters".

bild

Steps to reproduce the behavior

  1. Have the api installed and running.
  2. Open the swagger ui @ http://localhost:9080/swagger/swagger-ui
  3. Try to call the "/api/contract/instances/wallet/{wallet-id}" endpoint in the UI with a valid id.

Actual Result

bild

Expected Result

it should work with a... string?

Describe the approach you would take to fix this

No response

System info

all, I guess? (sorry for being unclear here but I have no idea - I just ran start-marlowe-run from the marlowe-cardano repo..)

@OlofBlomqvist OlofBlomqvist added the bug Something isn't working label Jul 23, 2022
@michaelpj michaelpj transferred this issue from IntersectMBO/plutus Aug 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant