REST服务器或API来测试我的RESTful客户端?我的、客户端、服务器、测试

2023-09-05 02:09:37 作者:满心荒凉i

我创建一个Android应用程序,需要我做休息请求到服务器,得到一些数据和分析。

I am creating an Android app that requires me to do a rest request to a server, get some data and analyze them.

我还是新的Andr​​oid开发,所以我不知道如果我实现的要求和线程的权利,并且服务器还没有准备好。所以,我需要,我可以用它来测试发送请求一个公共休息服务器?不要紧,我收到什么样的数据。

I am still new to android development so i am not sure if i am implementing the requests and threading right, and the server is not ready yet. So i need a public rest server that i can use to test sending requests? It doesn't matter what data i receive.

在此先感谢。

推荐答案

您可以测试对任何公开的REST API,你可以从著名的服务发现和选择不需要身份验证的动作。例如微小的网址(如果你想测试GET请求),如果你想更复杂的数据,你可以从Twitter获取一个身份验证令牌和测试针对他们的API 。

You can test against any public REST API that you can find from famous services and choose actions that don't require an authentication. For instance Tiny Url (if you want to test GET requests) and if you want more complex data you can get an auth token from Twitter and test against their API.

请注意,这只是一个例子。这样做是为了调查您最喜爱的网站/ 33.060.99的API和你可能会找到一个适合你和你的测试。

Note that this is just an example. The idea is to investigate the APIs of your favorite sites/servies and you'll likely find one that fits you and your tests.