Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/components: add ability to load offers from API in ListCardOffer #778

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

maceksimon
Copy link
Contributor

Add ability to load offers from API in ListCardOffer.

  • Create a new composable function useApiGetOffers to load data from API and compute cards array.
  • Update composable function useApi to be able to pass parameters to URL.
  • Use new composable in CardListOffer component replacing mock data.
  • Add fixture data.
  • Add test commands.

TO DO:

  • Make URL parameters in useApiGetOffers dynamic.
  • Share URL parameters with interceptOffersGetApi command for testing.
  • Finish transcription of offer data into cards array.

Šimon Macek and others added 5 commits December 11, 2024 17:22
auto-mat#768)

* add baseUrl variant to useApi composable

* move enum definition into enum folder

* src/composables: refactor getAxiosBaseApiUrl() func

---------

Co-authored-by: Šimon Macek <[email protected]>
Co-authored-by: Tomas Zigo <[email protected]>
@maceksimon maceksimon marked this pull request as draft December 11, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant