Commit bd55ee7e authored by Carlos Juliano Viana's avatar Carlos Juliano Viana
Browse files

Atualizando script de request com o parâmetro do token na chamada.

[SOMA-3695]
Showing with 3 additions and 3 deletions
+3 -3
......@@ -16,7 +16,7 @@ job)
"csbase_command_sandbox_paths.1":"/tmp/job_123",
"csbase_command_user_token":"USER_TOKEN",
}
}' $SGA_BASE_URL'/v1/sga/'$SGA_NAME'/job'
}' -H "Authorization: Bearer <token>" $SGA_BASE_URL'/v1/sga/'$SGA_NAME'/job'
;;
status)
......@@ -25,11 +25,11 @@ status)
then
num=123
fi
curl -v $SGA_BASE_URL'/v1/sga/'$SGA_NAME'/job/'$num'/status'
curl -H "Authorization: Bearer <token>" -v $SGA_BASE_URL'/v1/sga/'$SGA_NAME'/job/'$num'/status'
;;
path)
curl -v $SGA_BASE_URL'/v1/sga/'$SGA_NAME'/path?name='$2
curl -H "Authorization: Bearer <token>" -v $SGA_BASE_URL'/v1/sga/'$SGA_NAME'/path?name='$2
;;
esac
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment