Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -s -X POST "https://$APISERVER/users"
- -H 'Content-Type: application/json'
- -d '{
- "username": "'$NEWUSERNAME'",
- "firstName": "'$NEWUSERFIRSTNAME'",
- "lastName": "'$NEWUSERLASTNAME'",
- "displayName": "'$NEWUSERDISPLAYNAME'",
- "password": "'$NEWUSERPASSWORD'"
- }'
- APISERVER=http://localhost:8080
- NEWUSERNAME=$1
- NEWUSERPASSWORD=$2
- NEWUSERFIRSTNAME=$3
- NEWUSERLASTNAME=$4
- # Calculated variable
- NEWUSERDISPLAYNAME="${NEWUSERFIRSTNAME} ${NEWUSERLASTNAME}"
- NEWUSERNAME=jdoe
- NEWUSERPASSWORD=Hello123
- NEWUSERFIRSTNAME=John
- NEWUSERLASTNAME=Doe
- JSON parse error: Unexpected end-of-input in VALUE_STRINGn at [Source:
- java.io.PushbackInputStream@2eda6052; line: 1, column: 293]; nested
- exception is com.fasterxml.jackson.databind.JsonMappingException:
- Unexpected end-of-input in VALUE_STRINGn at [Source:
- java.io.PushbackInputStream@2eda6052; line: 1, column: 293]n at
- [Source: java.io.PushbackInputStream@2eda6052; line: 1, column: 142]
- (through reference chain:
- com.mycompany.api.pojos.NewUser["displayName"])"
- "displayName": "John Doe",
Add Comment
Please, Sign In to add comment