Skip to content

Commit 7f8647f

Browse files
authored
Merge pull request #6 from tahsina13/api-endpoints
small readme fixes
2 parents c6b6364 + faad95c commit 7f8647f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,11 @@ Example curl (create session):
243243
```sh
244244
curl -X POST http://localhost:8080/api/sessions \
245245
-H "Content-Type: application/json" \
246-
-d '{"image":"nginx:stable","command":"nginx -g \'daemon off;\'","ttl":60}'
246+
-d "{
247+
\"image\": \"nginx:latest\",
248+
\"command\": \"nginx -g 'daemon off;'\",
249+
\"ttl\": \"24h\"
250+
}"
247251
```
248252

249253
### Stop Session
@@ -302,7 +306,7 @@ Response (application/json): array of Session objects. Each Session has the shap
302306
"spec": {
303307
"image": "<docker-image>",
304308
"command": "<command-string>",
305-
"ttl": <seconds>
309+
"ttl": "<duration>"
306310
}
307311
}
308312
```

0 commit comments

Comments
 (0)