doushan9415 2016-05-30 16:39
浏览 35
已采纳

如何通过模拟HTTP来解决Slim REST API问题

I am new to http://www.slimframework.com/, but it is easy and I have the basics working. Now I wish to go through some of my script which is initiated by slimframework using an IDE (PhpED).

I suppose I could just set the URL as needed for a GET request, and make a HTML form and submit it for POST requests.

I expect there has to be a better way. How can I specify the method, url, and body so that I can troubleshoot the script?

  • 写回答

1条回答 默认 最新

  • dongsu1539 2016-05-30 17:18
    关注

    You can look into a handy tool called Postman.

    Once downloaded and open, you can specify URL, body, method and much more, send the request and look at the response. Parsed or unparsed. It lets you add collections so you can actually rebuild your entire API calls.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机