Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,11 @@ Example curl (create session):
```sh
curl -X POST http://localhost:8080/api/sessions \
-H "Content-Type: application/json" \
-d '{"image":"nginx:stable","command":"nginx -g \'daemon off;\'","ttl":60}'
-d "{
\"image\": \"nginx:latest\",
\"command\": \"nginx -g 'daemon off;'\",
\"ttl\": \"24h\"
}"
```

### Stop Session
Expand Down Expand Up @@ -302,7 +306,7 @@ Response (application/json): array of Session objects. Each Session has the shap
"spec": {
"image": "<docker-image>",
"command": "<command-string>",
"ttl": <seconds>
"ttl": "<duration>"
}
}
```
Expand Down
Loading