5 Star 10 Fork 11

LiangShao / dxyxx-web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
api.txt 3.15 KB
一键复制 编辑 原始数据 按行查看 历史
LiangShao 提交于 2015-03-11 18:58 . project framework done
手机注册接口 http://localhost:8080/chinesejie/send?phone=15201967267&pw=9263
对应的代码:LoginController:send
手机验证接口 http://localhost:8080/chinesejie/validate?phone=15201967267&code=9263
对应的代码:LoginController:validate
上传网页:http://localhost:8080/chinesejie/upload.jsp+ http://localhost:8080/chinesejie/picture/upload
参数:file word
方式:post
对应的代码:PictureController:upload
上传个人头像:http://localhost:8080/chinesejie/uploadImage.jsp+http://localhost:8080/chinesejie/picture/uploadImage
参数:file
方式:post
对应的代码:PictureController:uploadImage
手机登陆接口:http://localhost:8080/chinesejie/phonelogin
参数:phone password
方式:post
对应的代码:LoginController:phonelogin
sina登陆接口:http://localhost:8080/chinesejie/sinalogin
参数:uid token(微博的名字通过web后台访问微博的users/show接口得到)
方式:post
对应的代码:LoginController:sinalogin
douban登陆接口:http://localhost:8080/chinesejie/doubanlogin
参数:doubanId doubanName doubanToken
方式:post
对应的代码:LoginController:doubanlogin
页面登陆接口:http://localhost:8080/chinesejie/login
参数:account password
方式:post
对应的代码:LoginController:login
个人头像下载: http://localhost:8080/chinesejie/picture/download?name=admin_20140725-2059.jpg
参数:name
方式:get
对应的代码:PictureController:download
查看用户个人信息:http://localhost:8080/chinesejie/user/look
对应的代码:UserController:look
查看用户个人信息:http://localhost:8080/chinesejie/user/lookOther
参数:phone
对应的代码:UserController:lookOther
根据手机号得到图片 http://localhost:8080/chinesejie/getImageByPhone?phone=15201967267
----好友接口、类微博轻接口。好友关系表,第三张表。 前期不分group,后期加group也很简单,加两个表,一个group表(记录用户跟group),一个user To group表(记录group有多少friend)----
得到好友列表:/friend/all 不需要参数
取消关注好友:/friend/cancelCare 参数:friendId,取消好友的id 返回:Boolean
关注好友: /friend/care 参数:friendId,好友的id 返回: User(Object)
好友的卡片列表:/picture/friendsList
更多的好友卡片列表:/picture/friendsListMore
个人卡片列表:/picture/list
举例:http://127.0.0.1:8080/chinesejie/picture/listMore?current=1&count=45
更多个人卡片列表:
http://127.0.0.1:8080/chinesejie/picture/listMore?current=1&count=45&timestamp=2014-08-20%2000:00:01
其中timestamp 时间轴,表示取得比这个时间还早的卡片列表。
不需要登录的下载所有图片的接口:
http://127.0.0.1:8080/chinesejie/download2?name=...
、、评论接口
单表对应。
一个评论只属于一个pictureId,一个用户
添加评论
http://localhost:8080/chinesejie/comment/add?pictureId=1&word=eee
参数: pictureId
word
根据pictureId找到评论
http://localhost:8080/chinesejie/comment/list?pictureId=1&current=1&count=2
1
https://gitee.com/chinesejie/dxyxx-web.git
git@gitee.com:chinesejie/dxyxx-web.git
chinesejie
dxyxx-web
dxyxx-web
master

搜索帮助