3 个仓库
Tools that convert internal data structures into specific media types for API output.
Distinct from Response Formatting: Candidates are too specific (GraphQL, gRPC) or focus on AI analysis results rather than general web API response formatting.
Explore 3 awesome GitHub repositories matching web development · Response Formatters. Refine with filters or upvote what's useful.
Grape is a RESTful web service framework for Ruby designed for building structured APIs. It provides a declarative syntax for routing and parameter validation, allowing developers to map HTTP verbs to logic through a domain specific language. The framework is distinguished by its built-in support for service versioning, which can be managed via URL paths, custom headers, or request parameters. It also features a modular architecture that allows large services to be constructed by nesting smaller API definitions. The project covers comprehensive API lifecycle capabilities, including schema-dr
Converts output data into specified media types like JSON or XML using built-in or custom formatters.
xh is a command-line HTTP client used for sending network requests, testing REST APIs, and debugging connections. It functions as a terminal-based tool for executing requests with custom headers and bodies, while providing built-in formatting for network responses. The project includes a generator that converts configured network requests into equivalent shell commands for use in a standard terminal. It also features a response formatter that applies syntax highlighting and custom formatting to response headers and bodies to improve readability. The tool covers a broad range of network capab
Displays network response headers and bodies with syntax highlighting and custom formatting for improved readability.
Active Model Serializers 是一个 Ruby on Rails JSON 序列化器,用于将模型对象和关联转换为用于 API 的结构化 JSON 响应。它作为一个模型到 JSON 的映射器和响应格式化程序,将内部数据库模式与外部 API 契约解耦。 该项目利用可插拔适配器模式根据特定标准(如 JSON API 规范)组织序列化数据。它提供了一种将内部属性映射到自定义 JSON 键的机制,并实现了一个序列化作用域,允许根据授权上下文和用户权限进行属性和关联过滤。 该工具集通过使用虚拟属性以及通过侧加载(sideloading)或 ID 嵌入管理关联数据来涵盖数据转换。它包括用于响应元数据注入、基于片段的结果缓存以及用于跟踪序列化指标的性能检测的功能。
Adds pagination metadata and authorization-based filtering to Rails controller responses.