shop-api

时间:2021-03-11 09:33:32
【文件属性】:
文件名称:shop-api
文件大小:59KB
文件格式:ZIP
更新时间:2021-03-11 09:33:32
PHP 商店Api Shop Api可让您存储产品并管理购物车 安装 使用作曲家安装软件包。 composer install php bin/console d:d:c php bin/console d:s:u -f 运行测试 php bin/phpunit 路线 产品 添加-POST 将新产品添加到数据库 /api/product/add 形式主体: name: string price: int (ex. 123 will be 1.23) | float (ex 1.23) 清单-GET 列出,过滤和分页的产品 /api/product/list 参数: limit: ?int - default: 3 page: int orderField: ?string (id | name) - default: id orderSort: ?string (ASC | DESC)
【文件预览】:
shop-api-master
----.gitignore(298B)
----symfony.lock(8KB)
----templates()
--------base.html.twig(574B)
----src()
--------Entity()
--------Exception()
--------Kernel.php(1KB)
--------Service()
--------Controller()
--------Model()
--------Repository()
--------Form()
----bin()
--------phpunit(426B)
--------console(1KB)
----.env.test(215B)
----LICENSE(1KB)
----public()
--------index.php(535B)
----composer.json(2KB)
----.env(1KB)
----composer.lock(225KB)
----README.md(2KB)
----tests()
--------bootstrap.php(320B)
--------Controller()
----config()
--------packages()
--------preload.php(184B)
--------services.yaml(1KB)
--------routes()
--------routes.yaml(78B)
--------bundles.php(475B)
----migrations()
--------.gitignore(0B)
----phpunit.xml.dist(1KB)

网友评论