fond-of-oryx/stock-api
最新稳定版本:1.0.0.beta.0
Composer 安装命令:
composer require fond-of-oryx/stock-api
包简介
The StockApi module provides a REST API for simple stock operations
README 文档
README
The StockApi module provides a REST API for simple stock operations.
Package is ported and splitted from fond-of-spryker/stock-api
For creating and updating product stocks, please use fond-of-oryx/stock-product-api
Installation
composer require fond-of-oryx/stock-api
API
Get stock data by id
GET /stocks/{id_stock}
Example
curl -X GET "http://zed.yourdomain.com/api/rest/stocks/{id_stock}" \ -H 'Content-Type: application/json'
find stock data
GET /stocks?filter={"condition":"AND","rules":[{"id":"name","field":"name","type":"string","input":"text","operator":"equal","value":"EU"},{"id":"is_active","field":"is_active","type":"bool","input":"bool","operator":"equal","value":true}]}
Example
curl -X GET "http://zed.yourdomain.com/api/rest/stocks?filter={"condition":"AND","rules":[{"id":"name","field":"name","type":"string","input":"text","operator":"equal","value":"EU"},{"id":"is_active","field":"is_active","type":"bool","input":"bool","operator":"equal","value":true}]}" \ -H 'Content-Type: application/json'
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-14