water/mainline — Issue #84: CommitRequest-API mellan webklienten och servern
Author: jesjos
Created: 2012-03-08 09:23:29+00:00
State: open

API:t mellan klienten och servern ser inte riktigt likadant ut som det som ska in i beanstalk, därför skriver upp det här för säkerhetsskull.

``` javascript
{
command: "add"
repository: 123,
branch: "master",
commit_message: null,
files: [{
id: 1,
to: "path/to/dir/and/file.file"
}]
}

{
command: "move"
repository: 123,
branch: "master",
commit_message: "A commit message",
records: [{
from: "path/to/file.txt",
to: "path/to/new_file.txt"
}]
}

{
command: "remove"
repository: 123,
branch: "master",
commit_message: "A commit message",
records: [
"path/to/file1.txt",
"path/to/file2.txt"
]
}
```