stefanhk31 / personal_blog_flutter

https://stefanhodgeskluck.com
2 stars 0 forks source link

Refactor Butter/API Client #44

Closed stefanhk31 closed 7 months ago

stefanhk31 commented 7 months ago

Might not need api_client package anymore, now that we're moving to Dart Frog. Currently, we're fetching json, mapping it to an object, and then serializing it back to json for the front end. Maybe we can just fetch the responses?

Also need to update Butter Key to env variable in Dart Frog.

stefanhk31 commented 7 months ago

Might make sense to combine butter client & butter data source, and instantiate the DS w/the api key. Then we just pass json to endpoints, and don't worry about deserialization until we get to FE.

stefanhk31 commented 7 months ago

Being done as part of #38