awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
spec-first avatar

spec-first/connexion

0
View on GitHub↗
4,600 stars·784 forks·Python·Apache-2.0·2 vuesconnexion.readthedocs.io/en/latest↗

Connexion

Connexion is a spec-first Python web framework designed to derive server behavior and validation logic directly from a predefined API contract. It enables the development of web services by using an OpenAPI specification to automatically handle routing, request validation, and response serialization.

The framework distinguishes itself by acting as an OpenAPI request validator and mock server. It can simulate API behavior by serving example responses based on specification schemas, allowing for frontend development and prototyping before a backend implementation is completed. Additionally, it hosts an interactive API documentation interface, providing a console for users to visualize and test endpoints.

The project covers a broad range of capabilities including automated route registration, parameter injection, and security enforcement based on contract definitions. It also provides tools for schema validation of both requests and responses, as well as the ability to map application exceptions to standardized machine-readable error responses.

Features

  • Runtime Schema Enforcement - Ensures incoming requests and outgoing responses strictly adhere to a predefined OpenAPI schema to guarantee contract compliance.
  • Spec-First API Frameworks - Provides a full framework to build an API by mapping operation identifiers to handlers while managing routing, security, and parsing.
  • API Payload Serializers - Converts internal language objects into the format specified by the API documentation for the client.
  • Automatic Route Registration - Links API endpoints to handler functions automatically using a specification to eliminate manual route decorators.
  • Controller Response Serializers - Automatically converts controller return values into network responses that match the specified OpenAPI schemas and content types.
  • Request Parameter Parsing - Extracts values from the request and passes them as arguments to handler functions to remove manual parsing.
  • API Authentication - Manages programmatic access to services by enforcing identity verification defined in the API specification.
  • Security Requirement Mappings - Verifies that incoming requests meet the specific security schemes and scopes defined in the OpenAPI document.
  • Automated API Documentation - Generates interactive API documentation that stays synchronized with the implementation and the OpenAPI specification.
  • Contract-First API Frameworks - Implements a design workflow where the API contract drives the generation of routing and validation logic.
  • Mock Server Generators - Simulates API behavior by serving example responses generated directly from the specification schemas without a backend implementation.
  • Request Validation - Verifies that incoming headers, query parameters, and request bodies adhere to the constraints defined in the API specification.
  • API Simulation and Mocking - Simulates API behavior and serves example responses from a specification to enable frontend development before backend implementation.
  • Function-to-URL Mappings - Links API operations to functions or class methods using operation identifiers or automated resolution.
  • API Mocking Servers - Serves example responses based on specification schemas to simulate API behavior without a backend implementation.
  • API Parameter Validation - Checks incoming headers, parameters, and bodies against a specification to ensure requirements are met.
  • API Routing - Automatically maps incoming requests to handler functions based on a predefined OpenAPI specification.
  • Automatic Parameter Injection - Automatically parses request parameters and injects them as typed arguments into handler functions based on the API specification.
  • Request Body Validations - Defines pluggable validation logic based on content types to verify that request bodies match expected formats.
  • Schema-Based Request and Response Validation - Ensures both incoming requests and outgoing responses strictly comply with the API contract schemas.
  • Interactive API Documentation UIs - Includes a web interface that lets users visualize and interact with the API based on the specification.
  • Operation ID Mappings - Links API endpoints to Python code by resolving operation identifiers from the specification to specific handler functions.
  • Parameter Injections - Parses parameters from the request and injects them directly into handler functions.
  • Request Validation Middleware - Provides middleware that verifies incoming headers, parameters, and bodies against an OpenAPI schema before reaching the handler.
  • Response Serialization - Converts language types into network responses automatically based on the specified content types.
  • API Response Validation - Verifies that outgoing response bodies and headers adhere to the defined OpenAPI specification before delivery.
  • OpenAPI Frameworks - Integrates OpenAPI specification and JSON Schema validation directly into the Python web development workflow.
  • Specification-Driven Routing - Maps incoming network requests to handler functions by resolving operation identifiers and paths defined in an OpenAPI document.
  • Specification-to-Function Parameter Mappings - Parses and casts path, query, and body parameters from a specification into function arguments.
  • Typed Path Parameter Decoders - Captures variable URL segments and converts them into typed arguments based on the specification definitions.
  • Security Middleware - Enforces security policies and verifies authentication credentials via middleware based on the API contract.
  • Exception Mapping - Maps HTTP status codes to custom handler functions that process exceptions into structured responses.
  • Problem Details Formatting - Formats API error responses using the RFC 7807 Problem Details standard for machine-readable consistency.
  • Request Context Injection - Passes metadata like the base path, operation ID, and authentication details into the view function.
  • Content-Type Validators - Defines pluggable validation logic for request bodies and responses based on specific content types.
  • Operation Metadata - Provides access to operation details for the current request, including defined schemas and security requirements.
  • Specification-Based Mocking - Automatically generates mock responses based on API specification files via a command line interface.
  • Simulated Request Testing - Provides a test client to simulate HTTP requests against the application without requiring a live network server.
  • Exception Response Mapping - Registers custom handlers to convert exception classes or HTTP status codes into formatted error responses.
  • RFC 7807 Implementations - Translates application exceptions into machine-readable JSON error responses following the RFC 7807 standard.
  • HTTP Problem Translation - Translates exceptions into standardized HTTP problem responses to provide consistent error reporting to clients.
  • UI Configurations - Customizes the visual appearance and behavioral settings of the integrated interactive API documentation interface.
  • Spec-Driven Server Bootstrapping - Launches a functional web server directly from a specification file to verify API structure.
  • REST Semantic Resolutions - Infers mappings between API paths and handler functions using REST semantics to reduce the need for explicit identifiers.
  • Web APIs - A spec-first framework that automatically handles requests based on OpenAPI.

Historique des stars

Graphique de l'historique des stars pour spec-first/connexionGraphique de l'historique des stars pour spec-first/connexion

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Connexion

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Connexion.
  • zalando/connexionAvatar de zalando

    zalando/connexion

    4,600Voir sur GitHub↗

    Connexion is a specification-driven framework for building APIs that automatically maps OpenAPI specifications to application logic. It uses these specifications to automate routing, request validation, and response serialization, linking API operations to backend handler functions via operation IDs. The project differentiates itself by providing a schema-driven mock server that simulates API behavior using example responses from the specification without requiring backend logic. It also includes a dynamic documentation hosting system that translates the API specification into a live interact

    Python
    Voir sur GitHub↗4,600
  • swagger-api/swagger-nodeAvatar de swagger-api

    swagger-api/swagger-node

    3,950Voir sur GitHub↗

    swagger-node is a toolkit for OpenAPI API development that ensures a project's implementation matches its documented design. It enables the generation of functional API servers and interactive documentation directly from YAML specification files. The project features a system for mapping API endpoints to specific controller functions and a mock mode that simulates API responses from the specification. This allows for API prototyping and frontend development before backend business logic is implemented. The platform provides a command-line interface for project bootstrapping, server managemen

    JavaScript
    Voir sur GitHub↗3,950
  • danielgtaylor/humaAvatar de danielgtaylor

    danielgtaylor/huma

    4,170Voir sur GitHub↗

    Huma is an OpenAPI REST framework for Go designed for building HTTP services with automatic OpenAPI 3.1 specification generation and JSON Schema validation. It serves as a toolkit for developing REST and RPC APIs with typed inputs and outputs, deriving interactive documentation directly from the source code. The framework distinguishes itself by automating the synchronization between implementation and documentation. It uses a content-negotiation engine to manage multiple serialization formats via client headers and employs a JSON Schema input validator to automatically verify request paramet

    Goapidocumentationfastapi
    Voir sur GitHub↗4,170
  • typestack/routing-controllersAvatar de typestack

    typestack/routing-controllers

    4,508Voir sur GitHub↗

    routing-controllers is a declarative API router and web framework controller for TypeScript. It provides a system for defining HTTP routes and request handling logic using class-based decorators and metadata to organize API endpoints into a structured architecture. The project utilizes adapter-based server integration to decouple routing logic from the underlying web framework, providing specific integrations for Express and Koa. It features a reflection-based type transformation system that validates and transforms incoming request parameters into typed class instances. The capability surfa

    TypeScriptcontrollersexpress-routerframework
    Voir sur GitHub↗4,508
Voir les 30 alternatives à Connexion→

Questions fréquentes

Que fait spec-first/connexion ?

Connexion is a spec-first Python web framework designed to derive server behavior and validation logic directly from a predefined API contract. It enables the development of web services by using an OpenAPI specification to automatically handle routing, request validation, and response serialization.

Quelles sont les fonctionnalités principales de spec-first/connexion ?

Les fonctionnalités principales de spec-first/connexion sont : Runtime Schema Enforcement, Spec-First API Frameworks, API Payload Serializers, Automatic Route Registration, Controller Response Serializers, Request Parameter Parsing, API Authentication, Security Requirement Mappings.

Quelles sont les alternatives open-source à spec-first/connexion ?

Les alternatives open-source à spec-first/connexion incluent : zalando/connexion — Connexion is a specification-driven framework for building APIs that automatically maps OpenAPI specifications to… swagger-api/swagger-node — swagger-node is a toolkit for OpenAPI API development that ensures a project's implementation matches its documented… danielgtaylor/huma — Huma is an OpenAPI REST framework for Go designed for building HTTP services with automatic OpenAPI 3.1 specification… typestack/routing-controllers — routing-controllers is a declarative API router and web framework controller for TypeScript. It provides a system for… stoplightio/prism — Prism is a set of tools for generating mock servers and validation proxies based on OpenAPI specifications or Postman… elysiajs/elysia — Elysia is a high-performance TypeScript web framework designed for building type-safe backend services. It provides a…