on 2018 Feb 19 10:32 AM
Hi Team,
Please help me to solve this issue. { "errors": [ { "message": "Required String parameter 'password' is not present", "type": "MissingServletRequestParameterError" } ] }
I am using this Url to create a new customer and also passing the required attribute in body part od POSTMAN but still getting the same issue.
URI:POST https://localhost:9002/rest/v2/powertools/users
Body Parameters: login=john.doe@mail.com&password=1q2w3e4r &firstName=John&lastName=Doe&titleCode=mr
Thank you.
Request clarification before answering.
Hi Sandeep,
Postman uses a few syntax notations depends on what your RestAPI prefers to receive - Usually URL parameters are translated in sent requests into URL-encoded or JSON notations. Please try them out:
0. URL notation (how it would look if it was GET):
localhost:9002/ws410/v2/powertools/users?login=john.doe@gmail.com&password=1q2w3e4r&firstName=John&lastName=Doe&titleCode=mr
1. X-www-form-urlencoded notation:
login:john.doe@gmail.com
password:1q2w3e4r
firstName:John
lastName:Doe
titleCode:mr
(translable from URL in tab: “Key-Value Edit” view, after clicking button "Parameters next to the url bar")
2. JSON notation:
{
"login":"john.doe@gmail.com",
"password":"1q2w3e4r",
"firstName":"John",
"lastName":"Doe",
"titleCode":"mr"
}
Best,
Marta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marta,
Than you for your time. But I want to use the webservices using OCC that is from oauth2 extensions.
So , I have to get the token first using the url : **https://localhost:9002/rest/oauth/token** and then want to create new customer using the Url : **https://localhost:9002/rest/v2/powertools/users**
If you have any idea about this, please help me for the same.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.