Finished clone script
This commit is contained in:
@@ -184,6 +184,13 @@ rest_api_post () {
|
||||
check_http_error
|
||||
}
|
||||
|
||||
rest_api_post_file () {
|
||||
check_get_token
|
||||
http_response=$(curl -s -k -o /tmp/rbkresponse.$$ -w "%{http_code}" -X POST $ENDPOINT -H "accept: application/json" -H "Authorization: Bearer $AUTH_TOKEN" -H "Content-Type: application/json" --data-binary @/tmp/payload.$$)
|
||||
check_http_error
|
||||
rm -f /tmp/payload.$$
|
||||
}
|
||||
|
||||
rest_api_post_empty () {
|
||||
check_get_token
|
||||
http_response=$(curl -s -k -o /tmp/rbkresponse.$$ -w "%{http_code}" -X POST $ENDPOINT -H "accept: application/json" -H "Authorization: Bearer $AUTH_TOKEN" -H "Content-Type: application/json")
|
||||
|
||||
Reference in New Issue
Block a user