Skip to content

Commit 6687083

Browse files
committed
add example for bulk creation
1 parent 4f57232 commit 6687083

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,30 @@ response: 201 CREATED, 403 FORBIDDEN (wrong reponame, non-existing path)
5454

5555

5656

57+
### create multiple repos
58+
```curl -F pathspec="PATHSPEC" $HOST/admin/v1/repos```
59+
60+
PATHSPEC: define pathes via
61+
[brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html)
62+
63+
pathspec example:
64+
```curl -F pathspec="base/{6,7}/{x86_64,noarch}" $HOST/admin/v1/repos```
65+
results in the following repo hierarchy:
66+
```
67+
base/
68+
+-- 6/
69+
| +-- x86_64/
70+
| +-- noarch/
71+
|
72+
+-- 7/
73+
+-- x86_64/
74+
+-- noarch/
75+
```
76+
77+
response: 201 CREATED, 403 FORBIDDEN (wrong reponame, non-existing path), 400 BAD REQUEST (missing/malformed pathspec)
78+
79+
80+
5781
### check repo
5882
```curl $HOST/$TESTREPO1/```
5983

0 commit comments

Comments
 (0)