简体   繁体   English

如何知道对我的代码 (SERVER) 进行了哪些 API 调用? 与原生 Android 开发人员合作时

[英]How to know which API calls are made to my code (SERVER) ? When working with a Native Android Developer

For the first time I have started working with a Android Developer.我第一次开始与 Android 开发人员合作。 I am writing for him CodeIgniter RESTful API.我正在为他编写 CodeIgniter RESTful API。

I just want to ask that how can I know what are the POST variables he sending to my API when hitting a particular one.我只是想问一下,当点击特定的变量时,我怎么知道他发送给我的 API 的 POST 变量是什么。

Because many times he is sending a different format of POST while my ready function is expecting some different POST formats or sometime totally different POST.因为很多时候他发送的是不同格式的 POST,而我的就绪函数期待一些不同的 POST 格式或有时完全不同的 POST。

Is there any way I can know what and which POST formats he is posting on my functions.有什么方法可以让我知道他在我的函数上发布了什么以及哪些 POST 格式。 So that if he is sending a wrong format I can immediately tell him to send the inputs in a particular format.这样,如果他发送错误的格式,我可以立即告诉他以特定格式发送输入。

I got a solution for my problem.我得到了解决我的问题的方法。 I am maintaining a log file now, which keeps on logging all the API hits on my server.我现在正在维护一个日志文件,它会不断记录我服务器上的所有 API 命中。 With POSTs sent along with API call.随着 POST 与 API 调用一起发送。

暂无
暂无

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

相关问题 Android和SafetyNet,以确保对API的调用仅来自我的应用 - Android and SafetyNet to ensure calls made to the API are from my app only 连接到Intranet服务器的API调用在Android Emulator中不起作用 - API Calls connecting to intranet server not working in Android Emulator Restful Api的最佳HTTP响应代码,当发生故障时可以调用其他Web服务 - Best HTTP Response Code for a Restful Api which makes calls to other Web Services when a failure occurs 我的 windows 应用程序如何调用 REST API(使用实体框架)使用由 EF 生成的模型 - How does my windows application which calls an REST API (using Entity Framework) use the models generated by EF 从FrontEnd发出的API调用与从后端到任何外部后端服务器的Api调用之间的区别 - Difference between API calls from frontEnd and Api calls from Backend to any external Backend server Code 存储和使用 API 调用的 Firebase Auth Token 到我的服务器 - Storing and using the Firebase Auth Token for API calls to my server 如何在Android上改善我的通话次数? - How to improve my Rest Calls on Android? 当有人使用“添加到闲置”按钮安装机器人时,我的机器人服务器如何立即知道? - How can my bot server know INSTANTLY when someone installed the bot using Add-to-slack button? 如何授权API从移动应用程序拨打没有任何注册和登录? - How to authorize API calls made from a mobile app without any registration and login? 如何访问由 ExpressJS 在 C# 代码中创建的 REST API 端点 - How to access REST API endpoints made by ExpressJS in a C# code
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM