Postman 在angular项目中与邮递员进行api测试

Postman 在angular项目中与邮递员进行api测试,postman,Postman,我想测试我的阻力,这是后类型它包含用户名,电子邮件,密码,电话号码api。我真的不知道如何在postman中测试api。它应该是无授权的授权类型。在此之后,我必须验证或测试登录api,然后它生成一些密钥,然后我必须使用此密钥测试其他api 取决于first find是否正在使用任何形式的身份验证。在这种情况下,您需要在发送请求之前处理身份验证。检查下面的链接,它将帮助您进行身份验证 i believe to test post api withpostman first you need to

我想测试我的阻力,这是后类型它包含用户名,电子邮件,密码,电话号码api。我真的不知道如何在postman中测试api。它应该是无授权的授权类型。在此之后,我必须验证或测试登录api,然后它生成一些密钥,然后我必须使用此密钥测试其他api

取决于first find是否正在使用任何形式的身份验证。在这种情况下,您需要在发送请求之前处理身份验证。检查下面的链接,它将帮助您进行身份验证

i believe to test post api withpostman
first you need to put the route of your api and the type of http in your case POST
then go to header tab and add this header(under key/value):-
Content-Type :application/json
then under body tab select row option and insert valid json as below
{
    "username": "Omar Shabro",
    "email": "o4@o.com",
    "phone": "0599"

}

很抱歉收到此消息-无法获得任何响应您收到的错误是什么?你能从你的代码中测试这个api吗?