自述文件
露比版2.7.2 Rails版本6.1.1
测试方法:
克隆应用程序: git clone https://github.com/imFawkes/stocks_api <directory>
添加宝石: bundle install
设置数据库: rails db:setup
在一个终端窗口中运行服务器: rails s
在注释器终端窗口中使用curl检查:
将产品从一个仓库转移到另一个仓库: curl -i -d '{"warehouse_id":"1", "new_warehouse_id":"2", "quantity":"5"}' -H "Content-Type: application/json" -X POST http://localhost:3000/products/1/transfer
出售具有合格数量的产品: curl -i -d '{"pr
评论0
最新资源