LyEve Core
Developer guide
This guide is for developers who call LyEve from their own code: a website, a mobile app, a backend job or another service. Everything goes over HTTP and JSON, so any language works. The pages it links hold the detail. This page tells you which one to read next.
Your first hour
Link to the section Your first hour- Quickstart: start an engine, get a token, and write
and read your first entry with
curl. - Core concepts: the two APIs and their ports, tenants and roles, in the words the routes use.
- Your first content type: model a content type with a relation, then read it back filtered and with the related entry inline.
- API keys: give your site or service its own key, limited to the actions it needs.
- Read and write content: every Content API route, its query parameters and how paging works.
- SDK overview: the TypeScript client, if you work in TypeScript or JavaScript.
Common jobs
Link to the section Common jobs| I need to... | Read |
|---|---|
| Sign in from code and keep the session alive | Authenticate |
| Give a site or service a credential of its own | API keys |
| Script the Admin API from CI | Admin tokens |
| Check a LyEve token inside my own service | Validate tokens with JWKS |
| Page through entries, filter them, include related ones | Query parameters and the data model |
| Publish, unpublish or restore a revision | Drafts and publishing |
| Turn content history on, set its retention or read who changed what | Content history |
| Retry a write without creating it twice | Idempotent requests |
| Shape an endpoint the way my frontend wants it | Build a custom API with flows |
| Query over GraphQL or gRPC | GraphQL API, gRPC API |
| Serve each reader in their language | Localization |
| Add full-text search to my site | Search |
| Keep the content model in my repository | Schema and flows as code |
| Stay under the rate limits | Rate limiting |
| Find out why a call failed | Troubleshooting |
Hear about changes
Link to the section Hear about changes| If you want to | Use | Needs |
|---|---|---|
| Run steps of your own when an entry changes, with no server to deploy | A flow with an event trigger | Free |
| Have another system called with a signed request when content changes | Webhooks | Free up to 25 per tenant. More, and retry policies of your own, need webhook-pro |
| Push changes to browsers and apps that stay connected | Realtime | realtime |
| Feed every change into NATS, Kafka or RabbitMQ | Message broker events | messagebroker |
| Send a window of past changes again | Event replay | events |
Related
Link to the section Related- API endpoints: every route on both APIs.
- Configuration: every setting, if you also run the instance.
- Operator guide: deploying what you build against.