add api for post browser-use tasks
This commit is contained in:
parent
890d492de0
commit
d277955a9a
11 changed files with 320 additions and 8 deletions
17
api/README.md
Normal file
17
api/README.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Browser REST API
|
||||
|
||||
REST-обертка над `browser-use` RPC (`http://browser:8787/run`).
|
||||
|
||||
## Endpoints
|
||||
|
||||
- `GET /health`
|
||||
- `POST /api/browser/tasks`
|
||||
- `GET /api/browser/tasks/{task_id}`
|
||||
- `GET /api/browser/tasks/{task_id}/result`
|
||||
|
||||
## Пример
|
||||
|
||||
```bash
|
||||
curl -sS -X POST http://localhost:8088/api/browser/tasks \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"task":"Открой example.com и верни заголовок страницы","timeout":300}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue