是否有一个假的 json api 可以在某处进行 POST 登录?

Gus*_*ang 2 api rest json xamarin

我找不到任何符合我需要的东西,到目前为止我一直在使用https://jsonplaceholder.typicode.com进行 GET 请求,是否有工具可以使用 POST 模拟登录过程?

我在自己的 API、TLS 异常和“证书未知”错误消息方面遇到了很多麻烦,所以我想检查我的代码是否真的有效。我知道我没有收到相同的异常,我用于登录的代码是:

var postData = new List<KeyValuePair<string, string>>();
postData.Add(new KeyValuePair<string, string>("grant_type", 
grant_type));
postData.Add(new KeyValuePair<string, string>("userName", "*****"));
postData.Add(new KeyValuePair<string, string>("password", "*****"));
var content = new FormUrlEncodedContent(postData);
var weburl = "Relevant URL for POST login here";
Run Code Online (Sandbox Code Playgroud)

Bru*_*iro 5

您可以将ReqRes用于伪造的 API。它具有登录和其他可用服务,并具有正确的响应。