helmich / flow-restapi-example
使用 TYPO3 Flow 的 REST 服务的示例应用程序
资助包维护!
martin-helmich
donate.helmich.me
v1.0.0
2015-01-09 16:49 UTC
Requires
- doctrine/migrations: @dev
- helmich/flow-resttools: dev-master
- symfony/serializer: ~2.6
- typo3/flow: 2.3.*
- typo3/welcome: 2.3.*
Requires (Dev)
- mikey179/vfsstream: 1.2.*
- phpunit/phpunit: 4.0.*
- typo3/buildessentials: 2.3.*
- typo3/kickstart: 2.3.*
Suggests
- ext-pdo_sqlite: For running functional tests out-of-the-box this is required
This package is auto-updated.
Last update: 2024-08-28 05:10:28 UTC
README
马丁·赫尔米希 typo3@martin-helmich.de
摘要
此存储库包含一个示例应用程序,展示了如何使用 TYPO3 Flow 实现 RESTful 服务的实现。它包含三个包
Helmich.Products
包含围绕简单库存管理领域模型的实体类和存储库Helmich.ProductsApiSimple
包含一个简单的类似 REST 的 API(Richardson 成熟度模型 的第 2 级),允许您使用相应的 HTTP 方法进行产品和管理厂商的 CRUD 操作。Helmich.ProductsApiAdvanced
包含一个高级 API(RMM 的第 3 级),它是 超媒体控制 的(这意味着资源之间存在链接),并且还展示了一些设计模式,以解耦您的 REST 资源表示与您的领域实体。
安装
您可以使用 Composer 安装此应用程序
composer create-project helmich/flow-restapi-example
其他方式请遵循 TYPO3 Flow 安装说明。另外,请 设置您的数据库 并运行数据库迁移
./flow doctrine:migrate