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

RESTfull API ,以实现前后端分离 #59

Open
micln opened this issue Mar 20, 2017 · 1 comment
Open

RESTfull API ,以实现前后端分离 #59

micln opened this issue Mar 20, 2017 · 1 comment
Labels

Comments

@micln
Copy link
Contributor

micln commented Mar 20, 2017

目的是简单的页面能直接迁移。

  • 数据和翻页信息转成json
  • 全局的 ajax 支持,比如url 里加个标识。
@zhwei
Copy link
Collaborator

zhwei commented Mar 20, 2017

JSON Response ?

可以通过 header 的 context type 判定


感觉问题不大,在 Widget 层针对 JSON 等数据结构重新封装下就可以实现,之前有过这个思路,给 Lego 添加 RESTful API 是很简单的

@zhwei zhwei changed the title Ajax 支持 RESTfull API ,以实现前后端分离 Jun 23, 2017
@zhwei zhwei added the feature label Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants