Module api

Module api 

Source
Expand description

RESTful and GraphQL API endpoints for embedding services

This module provides production-ready HTTP APIs for embedding generation, model management, and batch processing capabilities.

§Module Structure

  • config: API configuration and state management
  • types: Request/response types and data structures
  • graphql: GraphQL schema and resolvers
  • handlers: HTTP endpoint handlers
  • routes: API route definitions
  • helpers: Utility functions

Re-exports§

pub use graphql::create_schema;
pub use routes::create_router;
pub use config::*;
pub use types::*;

Modules§

config
API configuration and state management
graphql
GraphQL API implementation
handlers
HTTP request handlers for the API
helpers
Helper functions for API handlers
routes
API route definitions
types
Request and response types for the API

Functions§

start_server
Start the API server