curl -H “Authorization: Bearer $FLY_API_TOKEN”
-H “Content-Type: application/json”
“``https://api.machines.dev/v1/apps?org_slug=OUR_ORG”
returns
{“id”:“z4k69dj74d39p5mx”,“name”:“APP_01”,“internal_numeric_id”:3282967,“network”:“default”,“status”:“deployed”,“machine_count”:2,“volume_count”:0,“organization”:{“name”:"
Cedalio",“slug”:“cedalio”},“cname_target”:“``ygoxl0.cedalio-studio-nico-dev.fly.dev``”,“app_role”:“”}
{“id”:“yk4g9k8rykd9zom5”,“name”:“APP_02”,“internal_numeric_id”:4169136,“network”:“default”,“status”:“suspended”,“machine_count”:2,“volume_count”:0,“organization”:{“name”:"
Cedalio",“slug”:“cedalio”},“cname_target”:“``r6r9o3.cedalio-studio-staging.fly.dev``”,“app_role”:“”}
{“total_apps”:26,“apps”:}
As you can see each app object is in a new line at the top of the response body and the last line is the proper response object with the apps fields with an empty array
This bug broke our backoffice application that integrates with fly’s API