Skip to content

Commit

Permalink
Fix documentation on publish switch API. smira/aptly#221
Browse files Browse the repository at this point in the history
  • Loading branch information
smira committed Mar 16, 2015
1 parent dded14e commit 2ee62e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/doc/api/publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ JSON body params:

Name | Type | Description
---------------------------|----------------------|-------------------------------
`Sources` | []Source | *only when updating published snapshots*, list of objects `Component`/`Name`
`Snapshots` | []Source | *only when updating published snapshots*, list of objects `Component`/`Name`
`ForceOverwrite` | bool | when publishing, overwrite files in `pool/` directory without notice
`Signing` | SigningOptions | gpg options (see above)


Example:

$ curl -X PUT -H 'Content-Type: application/json' --data '{"Sources": [{"Name": "8KNOnIC7q900L5v"}]}' http://localhost:8080/api/publish//wheezy
$ curl -X PUT -H 'Content-Type: application/json' --data '{"Snapshots": [{"Component": "main", "Name": "8KNOnIC7q900L5v"}]}' http://localhost:8080/api/publish//wheezy
{"Architectures":["amd64","i386"],"Distribution":"wheezy","Label":"","Origin":"","Prefix":".","SourceKind":"local","Sources":[{"Component":"main","Name":"2y21K6aKBE5UJBQ"}],"Storage":""}

### Drop Published Repository
Expand Down

0 comments on commit 2ee62e1

Please sign in to comment.