Test web service from postman

Hi, 
I am trying to test sample web service provided by native web_services plugin from postnam but I am getting some errors.

Here is the behavior

  • web_service : auth.gettoken
  • callback : AuthGetToken::class
  • Method : POST
  • params : 'username' and 'password'

1- Using Postman Params

When using Postman Params, everything works as expected


2- Using Postman Body (raw json)

When posting using raw json as body I got the following error message
Here is the Json I am sending

{

"username": "newuser",

"password": "securepassword123"

}
Here is the error I got
 
{"status":-1,"message":"Missing parameter username in method auth.gettoken"}

 

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking