api icon indicating copy to clipboard operation
api copied to clipboard

Debugging mode

Open erunion opened this issue 8 months ago • 0 comments

Discussed in https://github.com/readmeio/api/discussions/545

Originally posted by erunion October 25, 2022 Because a lot of the work that api does behind the scenes can be a bit magical it'd be nice if there was some sort of debugging mode that you could enable that would log out the HAR that we use in the backend with fetch-har.

const sdk = require('@api/petstore');

// leaf handling
sdk.debug();
sdk.operation().then(...)
const sdk = require('@api/petstore');

sdk.debug().operation().then(...)

Perhaps the chained mode should only apply the debug mode to the operation it's attached to.

erunion avatar Oct 25 '23 19:10 erunion