mozilla-releng / balrog

Mozilla's Update Server
http://mozilla-balrog.readthedocs.io/en/latest/index.html
Mozilla Public License 2.0
99 stars 149 forks source link

Consider Adding OS_VERSION to `/json/` endpoint. #3071

Closed strseb closed 9 months ago

strseb commented 9 months ago

Hellooo!

Over at the Mozilla VPN project, we just had deprecated an old osx version. However, we just noticed that we're not telling balrog the users OS-version, so we could not write a rule that would not advertise the update to the now stranded user 😅 I was experimenting with the XML endpoints, but I just hit an error (https://github.com/mozilla-releng/balrog/issues/3069, sorry 🙏 )

So I was wondering if it is possible to get a /json/2 endpoint like: https://github.com/mozilla-releng/balrog/blob/2675386418a0c8d5ed9c12a20ed44a6fe99b2440/src/auslib/web/public/swagger/api.yml#L199 But that can also consume the{osVersion} field similar to the XML endpoint?

Greetings, Basti :)