@@ -5,7 +5,7 @@ This guide explains how to interact with the socket-based `SSUI-API`, which expo
55## Overview
66
77The socket server reuses the HTTP routes defined in ` routes.go ` but serves them over:
8- - ** Linux** : A Unix socket at ` /tmp/ssui.sock ` .
8+ - ** Linux** : A Unix socket at ` /tmp/ssui/ssui .sock ` .
99- ** Windows** : A named pipe at ` \\.\pipe\ssui ` .
1010
1111This is similar to how Docker uses ` /var/run/docker.sock ` for local API access.
@@ -27,7 +27,7 @@ This is similar to how Docker uses `/var/run/docker.sock` for local API access.
2727Use ` curl ` with the ` --unix-socket ` flag to send HTTP requests to the socket. Example for the ` /api/v2/settings ` endpoint:
2828
2929``` bash
30- curl --unix-socket /tmp/ssui.sock http://localhost/api/v2/settings
30+ curl --unix-socket /tmp/ssui/ssui .sock http://localhost/api/v2/settings
3131```
3232
3333** Expected Output** : JSON response from the ` settings.RetrieveSettings ` handler, e.g.:
@@ -110,14 +110,14 @@ All routes from `routes.go` (e.g., `/api/v2/server/start`, `/api/v2/backups`) ar
110110
111111- ** Linux** :
112112 ``` bash
113- curl --unix-socket /tmp/ssui.sock http://localhost/api/v2/backups
113+ curl --unix-socket /tmp/ssui/ssui .sock http://localhost/api/v2/backups
114114 ```
115115- ** Windows** : Edit ` $endpoint ` in ` test_namedpipe.ps1 ` , e.g., ` $endpoint = "/api/v2/backups" ` .
116116
117117For POST requests (e.g., ` /api/v2/server/start ` ), add a JSON payload:
118118- ** Linux** :
119119 ``` bash
120- curl --unix-socket /tmp/ssui.sock -X POST -H " Content-Type: application/json" -d ' {"action":"start"}' http://localhost/api/v2/server/start
120+ curl --unix-socket /tmp/ssui/ssui .sock -X POST -H " Content-Type: application/json" -d ' {"action":"start"}' http://localhost/api/v2/server/start
121121 ```
122122- ** Windows** : Update the PowerShell script’s ` $request ` :
123123 ``` powershell
0 commit comments