Skip to main content

export_json_handler

Function export_json_handler 

Source
pub async fn export_json_handler<A: DatabaseAdapter>(
    __arg0: State<AppState<A>>,
) -> Result<Json<ApiResponse<JsonSchemaResponse>>, ApiError>
Expand description

Export compiled schema as JSON.

Returns the full compiled schema in JSON format. This includes type information, field definitions, and metadata. Useful for programmatic access and tooling.

Response format: Standard JSON API response with data wrapper

ยงErrors

Returns ApiError with an internal error if the schema cannot be serialized to JSON.