Balrog/Admin API: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 125: Line 125:
     "SystemAddons",
     "SystemAddons",
     "B2GDroid"
     "B2GDroid"
  ]
}
</pre>
== /releases ==
=== GET ===
Returns a JSON Object containing metadata about Releases in Balrog's database. Due to its size, the actual Release "blob" is never returned from this endpoint. There are a few query arguments that affect its response.
If no arguments are provided, it returns information about all of the Releases in the database in the following format:
<pre>
{
  "releases": [
    {
      "name": "Firefox-34.0-build1",
      "product": "Firefox",
      "data_version": 4,
      "read_only": null
    },
    {
      "name": "Fennec-34.0-build1",
      "product": "Fennec",
      "data_version": 43,
      "read_only": true
    },
    ...
  ]
}
</pre>
If "product" is passed, only Releases with the given product name will be returned.
If "name_prefix" is passed, only Releases whose name starts with the given prefix will be returned.
If "names_only" is set to true, the response changes format and provides a list of all of the Release names in the database:
<pre>
{
  "names": [
    "Firefox-34.0-build1",
    "Fennec-34.0-build1",
    ...
   ]
   ]
}
}
</pre>
</pre>
canmove, Confirmed users
6,441

edits