The main updates for this branch are the getResponses() of responses.js and getUsages() of usages.js.
The functions could use some validation and error checking but everything seems to work on my end.
The changes to response.js, usage.js and server-app.js are minor refactors and formatting fixes.
I also added some code in tests.js. There are a few basic tests for the API calls that I was using to develop this PR. We can update these with more robust tests.
Recap:
Main changes: responses.js, usages.js, tests.js
Refactors: response.js, usage.js and server-app.js
The main updates for this branch are the getResponses() of responses.js and getUsages() of usages.js.
The functions could use some validation and error checking but everything seems to work on my end.
The changes to response.js, usage.js and server-app.js are minor refactors and formatting fixes.
I also added some code in tests.js. There are a few basic tests for the API calls that I was using to develop this PR. We can update these with more robust tests.
Recap: Main changes: responses.js, usages.js, tests.js Refactors: response.js, usage.js and server-app.js