RFC: Starter Template: Third Party query example & best practices #1340
Replies: 2 comments 3 replies
-
Couple of questions:
|
Beta Was this translation helpful? Give feedback.
-
I like this, but I am a bit confused with the main goal(s). On one hand, it seems that we want to have a reference example/implementation on how to integrate a 3P API / client using best practices (caching etc). On the other hand, it seems like we want to have an internal v-route we can use to test various error handling layers associated with 3P API calls? If yes, I think it might be worth splitting into two separate RFCs. |
Beta Was this translation helpful? Give feedback.
-
In the starter template today we don't provide any guidance around how to query third party APIs and what the best practices are around things like caching and error handling.
An idea that I'd discussed with @timlombardo was to provide a resource route that might act like a dummy API that we could query, and given different search parameters, have a predictable result.
For example, fetching
/dummy-api?response-code=500
would return a500
, which you could then test out how an Error Boundary works, etc. Other things like/dummy-api?throttle=true
could be useful.Beta Was this translation helpful? Give feedback.
All reactions