oma-it commented on issue #16030:
URL: https://github.com/apache/superset/issues/16030#issuecomment-892685399
thanks @junlincc
#token compute
[cs_superset@superset-vm ~]$ token=`curl -k -H "Content-Type:
application/json" -d '{"password": "#masked#","provider": "db", "refresh":
true, "username": "admin"}' -X POST http://localhost:8088/api/v1/security/login
| jq -r .access_token`
#api call using the token to import superset_export.zip file
[cs_superset@superset-vm ~]$ curl -H "Authorization: Bearer $token" -H
'accept: application/json' -H 'Content-Type: multipart/form-data' -F
"formData=@superset_export.zip;type=multipart/form-data" -X POST
http://localhost:8088/api/v1/database/import/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to target URL: <a
href="/login/">/login/</a>. If not click the link.[cs_superset@superset-vm ~]$
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]