Skip to content

feat(api): Add API structure+communication POC

Adrian Orłów requested to merge feature/api-service-poc into development

Objective:

Create a structure and a way to communicate with the backend using zod and axios.

What has been done:

  • Added models directory with sample zod models
  • Added api.ts to types which is a succcesfull POC of extracting typescript interfaces from zod models
  • Added api service with useApiQuery hook which fetches and validates data from backend
  • Added api service utils and structure of queries

Additionally:

  • updated eslint config and installed lacking eslint-config-prettier dev package
  • added zod, axios and axios-hooks packages

Merge request reports