Module server

Module server 

Source
Expand description

Server module for building HTTP servers with auto-registered routes

This module provides a ServerBuilder that automatically registers:

  • CRUD routes for all entities declared in modules
  • Link routes for bidirectional entity relationships
  • Introspection routes for API discovery

The server architecture is modular and supports multiple exposure types:

  • REST (implemented)
  • GraphQL (available with ‘graphql’ feature)
  • gRPC (planned)
  • OpenAPI (planned)

Re-exports§

pub use builder::ServerBuilder;
pub use entity_registry::EntityDescriptor;
pub use entity_registry::EntityRegistry;
pub use exposure::RestExposure;
pub use host::ServerHost;

Modules§

builder
ServerBuilder for fluent API to build HTTP servers
entity_registry
Entity registry for managing entity descriptors and auto-generating CRUD routes
exposure
API Exposure modules for different protocols
host
Server host for transport-agnostic API exposure
router
Router builder utilities for link routes