mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-10-31 23:35:19 +01:00
12 lines
287 B
Plaintext
12 lines
287 B
Plaintext
|
#! /bin/bash
|
||
|
|
||
|
if [ $# != 1 ]; then
|
||
|
echo "usage: create <name>"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
api="http://index-node.default/"
|
||
|
|
||
|
data=$(printf '{"jsonrpc": "2.0", "method": "subgraph_remove", "params": {"name":"%s"}, "id":"1"}' "$1")
|
||
|
curl -s -H "content-type: application/json" --data "$data" "$api"
|