url > app.url
Nest app_id in drain, domain, gear and release views

the result is:
{
  <regular attributes here>
  "app": {
    "id": "<the_id>"
  }
}