Skip to content

Commit

Permalink
add example for bulk creation
Browse files Browse the repository at this point in the history
  • Loading branch information
arnehilmann committed May 4, 2017
1 parent 4f57232 commit 6687083
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,30 @@ response: 201 CREATED, 403 FORBIDDEN (wrong reponame, non-existing path)



### create multiple repos
```curl -F pathspec="PATHSPEC" $HOST/admin/v1/repos```

PATHSPEC: define pathes via
[brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html)

pathspec example:
```curl -F pathspec="base/{6,7}/{x86_64,noarch}" $HOST/admin/v1/repos```
results in the following repo hierarchy:
```
base/
+-- 6/
| +-- x86_64/
| +-- noarch/
|
+-- 7/
+-- x86_64/
+-- noarch/
```

response: 201 CREATED, 403 FORBIDDEN (wrong reponame, non-existing path), 400 BAD REQUEST (missing/malformed pathspec)



### check repo
```curl $HOST/$TESTREPO1/```

Expand Down

0 comments on commit 6687083

Please sign in to comment.