# Examples & API Endpoints

Search keywords: examples, endpoint reference, CRUD, model info, auth endpoints

## Scope

- Consolidated map to full example blocks
- Practical endpoint categories used by assistants during implementation/debugging

## Example Buckets

- Simple data model with permission overrides
- Calculation model patterns
- Combinatorial model patterns
- Serializer + restriction integration patterns
- Transaction and celery task patterns
- HTML report and structure YAML examples

## Endpoint Buckets

- Core: process tree/metadata and project info
- CRUD: one/list/many operations by model id
- Model info: serializers, fields, permissions, filters
- Auth: current user, user permissions, streamlit token
- Operational: global search, calculation-log endpoints, health checks

## Where to Expand

- `lex_context.md`: API endpoint and serializer sections
- `lex_context_repo.md`: Complete Code Examples; API Endpoints Reference

## LLM Prompt Starters

- "Map this use case to Lex endpoint categories and provide the minimal endpoint set to implement it."
- "Select the closest Lex example pattern and adapt it to this model with only required changes."
