Examples

Runnable projects in examples, with Hoppscotch request collections:

Example Shows
simple Traits implemented by hand, with gen_endpoint!
pagination A paginated list
openapi sqlx models with Swagger UI
graphql Authors, books and pages with GraphQL and relations
graphql_auth GraphQL with JWT authentication
relations_filters_sort Relations, filters and sort (PostgreSQL)
postgis PostGIS points and polygons as GeoJSON, spatial filters, and a nearby route with ST_DWithin
pgvector Embeddings and sparse vectors, a similarity search in the list, and a similar route
recipes A semantic search over 340 recipes, with embeddings computed locally by fastembed
before_save BeforeSave hooks: password hashing on create, email validation
reverse_engineering An API generated by octopux-reverse from ~100 tables
user_defined_pk A uuid primary key generated on insert by Uuid::new_v4 (--primary-key uuid --id-type uuid)