m-fejczaruk/symfony2-rest-skeleton
Composer 安装命令:
composer create-project m-fejczaruk/symfony2-rest-skeleton
包简介
The Symfony2 "Rest edition skeleton" based on "Symfony Standard Edition" distribution
README 文档
README
Symfony2 Rest Skeleton
This is skeleton for building rest applications in Symfony2. Also one restful service is included.
Installation
If you don't have composer installed
curl -sS https://getcomposer.org/installer | php
If you've composer installed
php composer.phar create-project m-fejczaruk/symfony2-rest-skeleton rest-example
cd rest-example
php app/console doctrine:migrations:migrate
And now you can enjoy phpunit tests :)
phpunit -c app/
And you can also check all carts ( basic restful service ) routes:
php app/console router:debug | grep cart
You can test 'cart' restful api, with postman:
GET app_dev.php/carts
GET app_dev.php/carts/{id}
POST app_dev.php/carts
PUT app_dev.php/carts/{id}
DELETE app_dev.php/carts/{id}
统计信息
- 总下载量: 44
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-09-18