Skip to content

Commit 01d26dc

Browse files
committed
docs(api-server): simplify data access flow description
- Remove unnecessary details about country model filtering - Focus on core data access flow explanation
1 parent b265c38 commit 01d26dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/api-server/architecture/data-access-flow.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This flow applies to requests for a collection of items.
4040
This crucial middleware uses the `ModelConfig` to determine the required permission for a `GET` collection request. It checks if the authenticated user has this permission. If not, a `403 Forbidden` error is thrown.
4141

4242
6. **Route Handler (`/routes/api/v1/data/index.dart`)**
43-
The request finally reaches the handler. The handler uses the `DataOperationRegistry` to find the correct `readAll` function for the specified model and executes it. For the `country` model, if a `usage` filter is present, the request is delegated to the `CountryService` for specialized, non-paginated results; otherwise, it proceeds with standard pagination and sorting.
43+
The request finally reaches the handler. The handler uses the `DataOperationRegistry` to find the correct `readAll` function for the specified model and executes it.
4444

4545
7. **Response**
4646
The handler wraps the data from the repository in a standard `SuccessApiResponse` and sends it back to the client.

0 commit comments

Comments
 (0)