测试出一个REST API的最佳方式? [英] Best way to test out a REST API?

查看:123
本文介绍了测试出一个REST API的最佳方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚创建使用PHP框架修身一个REST API。不过,我想知道什么是最好的办法是测试这个API会。它是最好测试一下使用PHP或客观-C(其中将使用它),或通过一些在线服务,使您可以测试出一个REST API?所有输出的JSON。

I just created a REST API using the PHP Slim Framework. However, I would like to know what the best way would be to test out this API would be. Is it best to test it out using PHP or objective-c (where it will be used) or via some online service which allows you to test out a REST API? All outputs are in JSON.

推荐答案

作为@马丁说,REST实施得当是独立于客户端(假设它支持你重新presentation类型)。因此,例如,你可以使用海报插件的Firefox或的 RESTClient实现2.3

As @Martin says, REST implemented properly is independent of the client (assuming it supports your representation types). So for example you can use the Poster add-on for Firefox, or RestClient 2.3.

这篇关于测试出一个REST API的最佳方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆