API文档在哪里可以看?
SOUL 用了Poplar,我看运营的还不错
以下URL,最好能整理一个API文档,这样我们可以重写一个服务端...对JSP不熟悉啊 const API_BASE = APP_SERVER_HOST + '/com.lvwang.osf/api'; const COMMENT_URL = URLConf.API_HOST + '/comment/'; const COMMENT_CREATE_URL = COMMENT_URL + '/create'; url: basePath + '/comment/create', var url = basePath+"/like"; url += '/undo' 已经喜欢 点击取消喜欢 var url=basePath+'/tag/'+tag_id; /tag/${tag.id } url: basePath + '/tag/'+tag_id+'/'+action, url = basePath + '/tag/'+tag_id+'/interest'; /tag/${id}/page/2 url: basePath + '/explore/page/'+page_num, /user/${popuser.id } url = basePath + '/follow/'+following_user_id; url = basePath + '/follow/undo/'+following_user_id; const NOTIFY_URL = URLConf.API_HOST + '/notify/all'; const FEED_URL = URLConf.API_HOST + '/timeline/'; const NEW_FEED_URL = FEED_URL + 'new'; /search/feed?term=${term } /search/tag const TAG_FEED_URL = URLConf.API_HOST + '/tag/'; const LOGIN_URL = URLConf.API_HOST + '/account/login'; url: basePath+'/account/login',
const LOGOUT_URL = URLConf.API_HOST + '/account/logout'; url: basePath + '/guide/ok', /search/feed /search/feed?term=${term } url:basePath+"/account/resetpwd", url: basePath + '/post/create', url: basePath + '/spost/create', url: basePath + '/account/activation/mail/resend?email='+email,
/user/${comment.comment_author } url: basePath + '/account/setting/info',
/followings /followers /search/user /user/${u.id } /user/${feed.user_id } url += '/do'; /album/upload /notifications/comment /notifications/like /user/${comment.comment_author } /post/${event.object_id } var url = path+'?ts=123456&sign=' + sign; /account/setting/info 个人信息 /account/setting/avatar 头像
url: basePath+'/album/upload/photo', url: basePath+'/album/upload/avatar', var COMMENT_URL = 'http://localhost:8080/com.lvwang.osf/api/v1/comment/'; /user/${u.id } url: basePath+'/account/register', const REGISTER_URL = URLConf.API_HOST + '/account/register'; var activationUrl = basePath + '/account/activation/mail/send?email='+email;
var sign = Md5.hex_md5('/com.lvwang.osf/api/v1/comment/create?ts=123456&'+'osf'); var url = COMMENT_URL+'create?ts=123456&sign=' + sign; var url = URLConf.API_HOST + '/account/check/email/';