简体   繁体   English

我有一个现有的 Django Webapp,如何制作 rest API 以将 webapp 与 ZC31B323617ECCECA84 集成

[英]I have an existing Django Webapp, how do I make a rest API to integrate the webapp with an android app?

I have an existing django webapp, I have two model classes in my models.py for different functionalities in my app.我有一个现有的 django webapp,我的 models.py 中有两个 model 类,用于我的应用程序中的不同功能。 I have used django allauth for all of the login/logout/social sign ins .我已将 django allauth 用于所有登录/注销/社交登录 Note: I have not used django rest framework at all so far in creating my app.注意:到目前为止,我在创建我的应用程序时根本没有使用 django rest 框架。 Now, I have to do the same for the android version of my webapp using Java.现在,我必须使用 Java 对我的 webapp 的 android 版本执行相同的操作。 What exactly do I need to do right now to create the rest APIs and then connect them to the android app?我现在需要做什么来创建 rest API,然后将它们连接到 android 应用程序? please give some suggestions请给一些建议

dj-rest-auth Drop-in API endpoints for handling authentication securely in Django Rest Framework. dj-rest-auth Drop-in API 端点,用于在 Django Rest 框架中安全地处理身份验证。 it depends on django allauth , easy to integrate and have a good documentation.它依赖于django allauth ,易于集成并具有良好的文档。

yes you have to create new rest API for the android apps.是的,您必须为 android 应用程序创建新的 rest API。 Authentication will be token based for the rest API.身份验证将基于 rest API 的令牌。 storing tokens and retrieving data will be handled by the android app.存储令牌和检索数据将由 android 应用程序处理。 The stable authentication for Django is Simplejwt Django 的稳定认证是 Simplejwt

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将 pygame 游戏集成到 flask webapp 中? - How do I integrate pygame game into flask webapp? 我必须使用 REST api 将我公司的应用程序与 Jira 集成并使用基本身份验证。我必须在 django 结构中进行 - I have to integrate my company's app with Jira using REST api and use the basic authentication.. I have to do it in django structure 如何使用webapp2选择尾随斜杠? - How do I make a trailing slash optional with webapp2? 如何将现有脚本集成到Django中? - How do I integrate existing scripts into Django? 是否有任何所见即所得的应用程序可用于制作简单 django webapp 的前端页面? - Is there any wysiwyg app which I can use to make the frontend pages of a sinmple django webapp? 如何从Django获取email_re以便在Google App Engine中的python webapp项目中工作? - how do I get email_re from django to work within a python webapp project in google app engine? 如何使 flutter 移动应用程序与 django 网络应用程序相关联? - How to make flutter mobile app associated to a django webapp? 我是否需要在 Django webapp 中手动获取 OAuth 的新令牌? - Do I need to manually get new tokens for OAuth in a Django webapp? 如何在没有域名的情况下在apache2服务器上部署django webapp - How do I deploy django webapp on apache2 server without having the domain name 如何使查询集等于 django webapp 中的列表? - How to make queryset equal to list in django webapp?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM