Integrates page entity with backend API

Refactors all page entity operations (get, create, update, delete) to use the Kiota-generated API client instead of mock data. This involves:

*   Replacing in-memory data and simulated delays with actual API calls to the `/v1/page` endpoint.
*   Introducing `ApiClient` and `Guid` types from Kiota for API interactions.
*   Adding a mapping function (`mapPageResponseToPage`) to convert API DTOs to the application's local `Page` type.
*   Updating page-related UI components (`PageListPage`, `PageDetailPage`, `PageEditPage`) to pass the authenticated `ApiClient` and `userId` to the entity functions.
*   Regenerating the Kiota client to include new `image`, `page`, and `space` API endpoints and their associated DTOs.
*   Introducing `useApiClient` and `useUserId` hooks for streamlined API client access and user context.
This commit is contained in:
dahyeon committed 2025-11-11 01:04:35 +09:00
1 parent 947f3a1899
commit 6325f8f109
19 files changed
+2170 -53

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
{
"descriptionHash": "200836B16636159389C7FE3249A16B5C32640105CCD00949343B15A4581D4C6E47D7AB178C27CFF8CCC82766AD8A69E3521D91360A4121A0EDB212B478B48B84",
"descriptionHash": "387A7F7CE359F0D1302E6656C0BFE5F4336641679CAF00708C735BDFA093A161840AA1A12D57E66D0109E95F7F515A1595EC7C12836ACB107E2B97E2892F5709",
"descriptionLocation": "https://wiki.dahyeon.us/v1/api-yaml",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.28.0",