Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API 整理建议 #1

Open
amio opened this issue Jun 1, 2014 · 1 comment
Open

API 整理建议 #1

amio opened this issue Jun 1, 2014 · 1 comment
Assignees

Comments

@amio
Copy link

amio commented Jun 1, 2014

排名分先后

  1. 统一请求格式
    目前的 token 有的在 querystring 里有的在 postdata里,最好把所有的请求统一为 post 方式,格式也可以一致起来,前后端都可以统一处理 token 认证,而不是按每个接口的情况各自处理了。
  2. 添加版本号字段
    例如 http://api.protoshop.io/getproject/ 改为 http://api.protoshop.io/v1/getproject/
    另外认证的 token 建议也用版本管理起来,以便将来升级 token 加密算法
  3. RESTful 化
    这一步所有的 API 都需要整理了,接口数量还可以减少一些。
@fkzhao
Copy link

fkzhao commented Jun 1, 2014

OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants