Skip to content

Add mock server for resource CRUD/List operations#60

Merged
rambleraptor merged 1 commit into
aep-dev:mainfrom
rambleraptor:claude/add-mock-server-01G6qHSgstb4MNeTn7wU9W7j
Dec 3, 2025
Merged

Add mock server for resource CRUD/List operations#60
rambleraptor merged 1 commit into
aep-dev:mainfrom
rambleraptor:claude/add-mock-server-01G6qHSgstb4MNeTn7wU9W7j

Conversation

@rambleraptor

Copy link
Copy Markdown
Member

Implements an in-memory mock server that can be toggled via a checkbox in the sidebar. When enabled, all resource CRUD and List operations are routed to an in-memory HashMap instead of making real network calls. This allows users to test the UI without requiring a live backend server.

Key changes:

  • Add Redux state slice for mock server toggle
  • Create MockResourceStore class for in-memory resource storage
  • Add "Use Mock Server" checkbox to sidebar
  • Route all CRUD operations (List, Get, Create, Patch, Delete) to mock store when enabled
  • Add mock-aware fetch wrapper for custom methods
  • Add Checkbox UI component

Implements an in-memory mock server that can be toggled via a checkbox in the sidebar. When enabled, all resource CRUD and List operations are routed to an in-memory HashMap instead of making real network calls. This allows users to test the UI without requiring a live backend server.

Key changes:
- Add Redux state slice for mock server toggle
- Create MockResourceStore class for in-memory resource storage
- Add "Use Mock Server" checkbox to sidebar
- Route all CRUD operations (List, Get, Create, Patch, Delete) to mock store when enabled
- Add mock-aware fetch wrapper for custom methods
- Add Checkbox UI component
@rambleraptor
rambleraptor merged commit 936c47e into aep-dev:main Dec 3, 2025
3 checks passed
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.

2 participants