Last Updated December 23, 2021
JSON
formatURL
GET /pies HTTP/1.1
Host: {CONNECT_SERVER_IP}:9981
Header
Parameters
Responds with List<pie_info>
in JSON format.
Request
When requesting from the same machine as ProtoPie Connect
curl -X GET [<http://localhost:9981/pies>](<http://localhost:9981/pies>)
When requesting from a remote machine connected to the same network as ProtoPie Connect. CONNECT_SERVER_URL
is the URL shown in the ProtoPie Connect console (e.g. 192.168.100.111:9981)
curl -X GET http://{CONNECT_SERVER_URL}:9981/pies
curl -X GET <http://192.168.100.111:9981/pies>
One can also use the browser's address bar to see the results in the web browser.
Response
[
{
"pieid":"13",
"name":"wearable-smartwatch-crossfit",
"filepath":"/Users/protopie/pies/wearable-smartwatch-crossfit.pie",
"createdAt":"2021-10-14T02:49:35.917Z"
"webPlayerConnected":false,
"ipPlayerConnected":true,
"usbPlayerConnected":false,
"webPlayerURL":"<http://192.168.100.111:9981/pie?pieid=13&name=wearable-smartwatch-crossfit>"
},
...
]