Follow this guide to implement a List Query endpoint in the ApiService.
Prerequisites
- Ensure the Projection exists.
- Ensure indexes are configured for filtered fields.
Create Endpoint
- Create/Update
src/BookStore.ApiService/Endpoints/{Resource}Endpoints.cs - Method:
MapGet - Logic:
GetOrCreateLocalizedAsync->Query->Where->ToPagedListAsync - Template:
templates/ListEndpoint.cs
- Create/Update
Client Integration
- Create
IGet{Resource}sEndpoint.csin Client project.
- Create
Related Skills
/marten__get_by_id: For fetching a single resource.