Skip to content

Commit

Permalink
Iglu upload script should use -XPUT rather than -XPOST (fixes #54)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeemster committed May 17, 2016
1 parent bf2a715 commit 06ab7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/scripts/iglu_server_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ for schemapath in $(find $schemafolder -type f | grep 'jsonschema'); do
echo $schemapath | awk -F '/' '{print $(NF-3)"/"$(NF-2)"/"$(NF-1)"/"$(NF)}';
)";
echo "Uploading schema in file '$schemapath' to endpoint '$destination'";
result="$(curl --silent "${destination}?isPublic=true" -XPOST -d @$schemapath -H "apikey: $write_api_key")";
result="$(curl --silent "${destination}?isPublic=true" -XPUT -d @$schemapath -H "apikey: $write_api_key")";
echo " - Result: $(echo ${result} | xargs)"

# Process result
Expand Down

0 comments on commit 06ab7c6

Please sign in to comment.