notea-de-me/server/testdata/fill_tree.sh

8 lines
350 B
Bash

#! /bin/bash
curl localhost:3004/api/v0/files/A -X PUT -d 'A' -H 'Title: A'
curl localhost:3004/api/v0/files/A/AA -X PUT -d 'AA' -H 'Title: AA'
curl localhost:3004/api/v0/files/A/AA/AAA -X PUT -d 'AAA' -H 'Title: AAA'
curl localhost:3004/api/v0/files/A/AB -X PUT -d 'AB' -H 'Title: AB'
curl localhost:3004/api/v0/files/B -X PUT -d 'B' -H 'Title: B'