Update API.md

This commit is contained in:
Drew Warren 2017-08-10 10:41:16 -06:00
parent b65697ea74
commit 42adabdb20
1 changed files with 5 additions and 5 deletions

10
API.md
View File

@ -12,7 +12,7 @@ All requests require an OAuth3 token in the request headers.
## Tunnel
### Check Status
* **URL** `/api/goldillocks@daplie.com/tunnel`
* **URL** `/api/goldilocks@daplie.com/tunnel`
* **Method** `POST`
* **Reponse**: An object whose keys are the URLs for the tunnels, and whose
properties are arrays of the tunnel tokens.
@ -21,7 +21,7 @@ All requests require an OAuth3 token in the request headers.
checking the status.
### Start Tunnel
* **URL** `/api/goldillocks@daplie.com/tunnel`
* **URL** `/api/goldilocks@daplie.com/tunnel`
* **Method** `POST`
This route will use the stored token for the user matching the request
@ -30,18 +30,18 @@ All requests require an OAuth3 token in the request headers.
## Socks5 Proxy
### Check Status
* **URL** `/api/goldillocks@daplie.com/socks5`
* **URL** `/api/goldilocks@daplie.com/socks5`
* **Method** `GET`
* **Response**: The returned object will have up to two values inside
* `running`: boolean value to indicate if the proxy is currently active
* `port`: if the proxy is running this is the port it's running on
### Start Proxy
* **URL** `/api/goldillocks@daplie.com/socks5`
* **URL** `/api/goldilocks@daplie.com/socks5`
* **Method** `POST`
* **Response**: Same response as for the `GET` resquest
### Stop Proxy
* **URL** `/api/goldillocks@daplie.com/socks5`
* **URL** `/api/goldilocks@daplie.com/socks5`
* **Method** `DELETE`
* **Response**: Same response as for the `GET` resquest