8 lines
214 B
Bash
8 lines
214 B
Bash
curl_opts=(
|
|
-H "Content-Type: application/json"
|
|
-H "Accept: application/json"
|
|
-H "Authorization: Bearer $2"
|
|
-X POST
|
|
--data-binary "@$1"
|
|
)
|
|
curl "${curl_opts[@]}" http://localhost:8000/benchmarks/ |