Skip to content

Why class is used in API call implementation, and what are the benefits of it? #2146

Answered by jamonholmgren
SaltMango asked this question in Q&A
Discussion options

You must be logged in to vote

It’s on my list to revisit later, but the primary benefits are that it can hold an apisauce instance and organize the api calls accordingly. Additionally, it’s easier to mock and test. But I’m looking at some alternate patterns too.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mrshahzeb7
Comment options

@jamonholmgren
Comment options

@mrshahzeb7
Comment options

Answer selected by jamonholmgren
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants