3 个仓库
Tools that convert internal data structures into network-ready formats based on API specifications.
Distinguishing note: The candidates are completely unrelated (AI, Robotics, Security); this is a core web framework capability for data transformation.
Explore 3 awesome GitHub repositories matching web development · API Response Serializers. Refine with filters or upvote what's useful.
Connexion 是一个规范驱动的框架,用于构建自动将 OpenAPI 规范映射到应用逻辑的 API。它使用这些规范来自动化路由、请求验证和响应序列化,并通过操作 ID 将 API 操作链接到后端处理函数。 该项目通过提供一个模式驱动的 Mock 服务器来区分开来,该服务器使用规范中的示例响应来模拟 API 行为,而无需后端逻辑。它还包括一个动态文档托管系统,将 API 规范转换为实时交互式控制台,用于探索和测试端点。 该框架涵盖了广泛的功能领域,包括通过基于中间件的身份验证和作用域验证实施安全性、可插拔的请求和响应验证逻辑,以及向类型化函数参数自动注入参数。它还提供了用于应用生命周期管理、自定义中间件集成和请求模拟测试的实用工具。 该项目可用于引导独立 Web 应用,或包装在现有框架周围以添加规范驱动的功能。
Converts objects into the format defined in the API specification before sending them to the client in the product.
This project is a REST API framework for NestJS designed to automate the creation of boilerplate-free CRUD endpoints and resource management. It functions as an automated CRUD generator that produces controllers and services for standard database operations, accelerating the development of RESTful APIs. The toolkit includes a REST query parser that translates complex URL parameters into structured database filters, pagination, and sorting rules. It also operates as an API response serializer to control the exposure of entity fields and manage nested relations within JSON responses. For extend
Transforms internal data structures into network-ready formats and excludes sensitive fields to control response exposure.
Django Tastypie 是一个用于构建 RESTful Web 服务的框架,将 Django 模型映射到 API 资源。它作为一个基于模型的 API 生成器,自动为数据库模型创建读写端点,以通过 HTTP 实现标准 CRUD 操作。 该项目充当多格式数据序列化器和超媒体 API 映射器。它根据客户端请求将数据库数据转换为各种响应格式(包括 JSON、XML 和 YAML),并将数据库关系转换为用于资源发现的可导航链接。 该工具包包含一个用于用户身份验证的安全实现,使用质询-响应握手以避免传输明文凭据。它还提供了映射复杂数据关系和管理 API 响应序列化的机制。
Provides tools to convert internal data structures into network-ready formats like JSON, XML, and YAML.