typo in content type

This commit is contained in:
Marco Lettere 2021-06-04 12:01:50 +02:00
parent 899621e6a3
commit 55db5d7d39
2 changed files with 4 additions and 14 deletions

View File

@ -53,18 +53,9 @@
"type": "JSON_JQ_TRANSFORM", "type": "JSON_JQ_TRANSFORM",
"inputParameters": { "inputParameters": {
"role": "${retrieve_member_role.output.body}", "role": "${retrieve_member_role.output.body}",
"queryExpression" : "[.role]" "queryExpression" : ".role"
} }
}, },
{
"name": "LAMBDA_TASK",
"taskReferenceName": "to_role_array",
"type": "LAMBDA",
"inputParameters": {
"role": "${retrieve_member_role.output.body}",
"scriptExpression": "return Java.to([$.role], 'java.lang.Object[]')"
}
},
{ {
"name" : "pyrest", "name" : "pyrest",
"type" : "SIMPLE", "type" : "SIMPLE",
@ -74,10 +65,10 @@
"method" :"POST", "method" :"POST",
"headers" : { "headers" : {
"Authorization" : "Bearer ${authorize.output.body.access_token}", "Authorization" : "Bearer ${authorize.output.body.access_token}",
"Content-type" : "application/json", "Content-Type" : "application/json",
"Accept":"application/json" "Accept":"application/json"
}, },
"body" : "${to_role_array.output.result}" "body" : "${to_array.output.resultList}"
} }
} }
] ]

View File

@ -57,8 +57,7 @@
"headers" : { "headers" : {
"Authorization" : "Bearer ${authorize.output.body.access_token}", "Authorization" : "Bearer ${authorize.output.body.access_token}",
"Content-Type" : "application/json" "Content-Type" : "application/json"
}, }
"expect" : [200,204,201,409]
} }
}, },
{ {