crazydouble
- crazydouble 2015-12-14 已签到连续签到1天,获得了5个金钱
- crazydouble 2015-10-22 已签到连续签到1天,获得了5个金钱
- crazydouble 回复了 Ricky_nie 的回答
我已经把文档链接给你了,你自己看看.我就是按照这个文档弄的
restful
关联查询(查询用户的时候可以关联返回他的文章)@Ricky_nie 好的理解了 非常感谢~
- crazydouble 回复了 Ricky_nie 的回答
我已经把文档链接给你了,你自己看看.我就是按照这个文档弄的
restful
关联查询(查询用户的时候可以关联返回他的文章)@Ricky_nie 上面那个是默认的Create 但是少了很多字段~下面的这个是我自己写的 反馈的是user表的所有字段~
- crazydouble 回复了 Ricky_nie 的回答
我已经把文档链接给你了,你自己看看.我就是按照这个文档弄的
restful
关联查询(查询用户的时候可以关联返回他的文章)@Ricky_nie 不好意思 再问您一下 我用默认的POST的Create和自己写的Create 反馈的View字段 差很多 如何可以让默认的POST Create 反馈数据库所有的字段
localhost:modules root# curl -d "phone_number=18611157217&password=123456" http://192.168.199.218/meishuquan-web/web/rest/users | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 178 100 138 100 40 2211 640 --:--:-- --:--:-- --:--:-- 2225 { "fan_count": 0, "follow_count": 0, "id": 2, "member_status": 0, "password": "123456", "phone_number": "18611157217", "user_source": 0, "user_status": 0 } localhost:modules root# curl -d "phone_number=18611157218&password=123456" http://192.168.199.218/meishuquan-web/web/rest/users | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 404 100 364 100 40 5985 657 --:--:-- --:--:-- --:--:-- 6066 { "background_pic": null, "fan_count": "0", "follow_count": "0", "gender": null, "id": "3", "meishuquan_number": null, "member_status": "0", "nickname": null, "password": "e10adc3949ba59abbe56e057f20f883e", "phone_number": "18611157218", "profile_pic": null, "province": null, "registration_date": "2015-10-20 16:51:53", "studio_id": null, "user_role": null, "user_source": "0", "user_status": "0" }
- crazydouble 2015-10-20 已签到连续签到1天,获得了5个金钱
- crazydouble 回复了 Ricky_nie 的回答
我已经把文档链接给你了,你自己看看.我就是按照这个文档弄的
restful
关联查询(查询用户的时候可以关联返回他的文章)App端口他们不想提供需要的字段,让后台自己获取。
但是这个文档的意思我已经理解 通过expand字段去返回其他表的数据是吧 非常感谢。 - crazydouble 回复了 BoyLee 的回答
我的做法是 /users?embed=uStudios
当然我是自己写的API来实现的,主要就是用relation 来读取希望对你有帮助,
PS Yii 来做 RESTful api 还是很有价值的。
好的 我也去试验下
- crazydouble 2015-10-15 已签到连续签到2天,获得了10个金钱