Commit 905213d
authored
Integrate Orval for OpenAPI-based Fetch Generation in React (#202)
* feat: add Orval configuration and update package scripts
Add Orval configuration for generating API clients from OpenAPI specs.
Update package.json to include Orval command in prepare script and
enhance path mappings in tsconfig.json for better module resolution.
Signed-off-by: Paul PLANCQ <paul.plancq@outlook.fr>
* refactor: reorganize mock handlers and update tsconfig paths
Renamed mock handler and server files for clarity.
Updated tsconfig to include new mock paths and added orval.config.ts to the include list.
Signed-off-by: Paul PLANCQ <paul.plancq@outlook.fr>
* feat: implement fetchApi utility and related constants
Add a generic API fetch utility with automatic type conversion and error handling.
Includes constants for HTTP methods, headers, and MIME types.
Also introduces tests for various fetch scenarios to ensure reliability.
Signed-off-by: Paul PLANCQ <paul.plancq@outlook.fr>
* chore: update Node and npm versions in package.json and add mise.toml
Signed-off-by: Paul PLANCQ <paul.plancq@outlook.fr>
* feat: add MicrocksHubService and corresponding tests
Implement MicrocksHubService to handle API package and version
fetching, along with unit tests to ensure functionality and
correctness of the service methods.
Signed-off-by: Paul PLANCQ <paul.plancq@outlook.fr>
* feat: add intelligent renaming guide for Vitest test cases
Signed-off-by: Paul PLANCQ <paul.plancq@outlook.fr>
---------
Signed-off-by: Paul PLANCQ <paul.plancq@outlook.fr>1 parent 54c6274 commit 905213d
File tree
23 files changed
+3334
-338
lines changed- .github/prompts
- api
- react
- mocks
- fixtures
- handlers
- src
- services/microcksHubService
- __tests__
23 files changed
+3334
-338
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments