Guest User

Untitled

a guest
May 30th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. curl -s -X POST "https://$APISERVER/users"
  2. -H 'Content-Type: application/json'
  3. -d '{
  4. "username": "'$NEWUSERNAME'",
  5. "firstName": "'$NEWUSERFIRSTNAME'",
  6. "lastName": "'$NEWUSERLASTNAME'",
  7. "displayName": "'$NEWUSERDISPLAYNAME'",
  8. "password": "'$NEWUSERPASSWORD'"
  9. }'
  10.  
  11. APISERVER=http://localhost:8080
  12. NEWUSERNAME=$1
  13. NEWUSERPASSWORD=$2
  14. NEWUSERFIRSTNAME=$3
  15. NEWUSERLASTNAME=$4
  16.  
  17. # Calculated variable
  18. NEWUSERDISPLAYNAME="${NEWUSERFIRSTNAME} ${NEWUSERLASTNAME}"
  19.  
  20. NEWUSERNAME=jdoe
  21. NEWUSERPASSWORD=Hello123
  22. NEWUSERFIRSTNAME=John
  23. NEWUSERLASTNAME=Doe
  24.  
  25. JSON parse error: Unexpected end-of-input in VALUE_STRINGn at [Source:
  26. java.io.PushbackInputStream@2eda6052; line: 1, column: 293]; nested
  27. exception is com.fasterxml.jackson.databind.JsonMappingException:
  28. Unexpected end-of-input in VALUE_STRINGn at [Source:
  29. java.io.PushbackInputStream@2eda6052; line: 1, column: 293]n at
  30. [Source: java.io.PushbackInputStream@2eda6052; line: 1, column: 142]
  31. (through reference chain:
  32. com.mycompany.api.pojos.NewUser["displayName"])"
  33.  
  34. "displayName": "John Doe",
Add Comment
Please, Sign In to add comment