3 个仓库
The practice of mapping HTTP methods to specific methods within a resource class to organize API logic.
Distinct from Class-Based Schema Mapping: Existing candidates focus on CSS classes, schema mapping, or cloud resources rather than HTTP method-to-class-method dispatch
Explore 3 awesome GitHub repositories matching web development · Class-Based Resource Mapping. Refine with filters or upvote what's useful.
Flask-restful is a toolkit for building structured web services using Flask. It functions as a resource-based routing library and a RESTful web service toolkit that organizes endpoints into resource classes. The framework implements a system that maps HTTP methods to specific class methods to handle requests and responses. It utilizes a central registry for resource registration to automate route creation and uses decorators for method dispatch and resource access control. The project covers request and response management through declarative request parsing, argument validation, and data ty
Organizes endpoint logic by mapping HTTP verbs directly to corresponding methods within resource classes.
stripe-php 库是一个 PHP 客户端,用于将 Stripe 支付处理、订阅计费和金融服务集成到应用程序中。它提供了一个编程接口,用于管理关联账户、发行虚拟卡以及向卖家自动发放款项。 该库的特色在于一套全面的计费和支付工具,包括对循环收费、基于用量的计费以及客户自助服务门户管理的支持。它还通过税务和收入库实现了金融自动化,这些库处理全球销售税计算和权责发生制会计的自动收入确认。 该项目涵盖了广泛的功能领域,包括市场编排、欺诈和风险管理以及销售点集成。它还包括用于金融账户连接、商业卡发行以及通过商户记录服务管理数字产品销售的工具。 开发者可以使用提供的带有测试 API 密钥的沙盒环境来促进集成开发。
Uses dedicated resource classes to encapsulate API request logic and response hydration.
WordPress REST API 是一个 Web 接口和基于 JSON 的内容 API,允许使用标准 HTTP 方法检索和修改站点内容、用户和元数据。它作为无头 CMS 接口,通过可编程的 RESTful 控制器暴露站点数据,从而将内容管理与前端解耦。 该系统以其超媒体驱动的发现和基于 JSON-schema 的验证而著称,允许客户端以编程方式定位资源并确保数据交换的可预测性。它利用基于命名空间的端点注册来组织路由,并支持灵活的身份验证层,包括应用程序密码、会话 Cookie 和第三方身份标准。 该 API 涵盖了广泛的资源管理功能,包括处理文章、页面、媒体和基于块的内容。它为响应管理提供了全面的工具,例如资源嵌入、分页和字段过滤,以及用于管理内容修订和站点管理的工具。 支持特定语言的 SDK,将网络请求抽象为高级编程接口。
Organizes CRUD logic into standardized classes that map HTTP methods to specific data model operations.