Yii2-Restful-API返回Json,那么怎么传递条件,查询相应的Json?
Like:查询goods表中所有包含‘6’的name。
http://localhost/advanced/api/web/v1/goods?name=6
Result:
[{"id":8,"name":"678"},{"id":9,"name":"666"}]
https://stackoverflow.com/questions/25522462/yii2-rest-query
标签:ons src .com post cal log restful com flow
Yii2-Restful-API返回Json,那么怎么传递条件,查询相应的Json?
Like:查询goods表中所有包含‘6’的name。
http://localhost/advanced/api/web/v1/goods?name=6
Result:
[{"id":8,"name":"678"},{"id":9,"name":"666"}]
https://stackoverflow.com/questions/25522462/yii2-rest-query
标签:ons src .com post cal log restful com flow
原文地址:https://www.cnblogs.com/liuliwei/p/8406423.html