)]}'
{"doc/source/user/badges.rst":[{"author":{"_account_id":1,"name":"James E. Blair","email":"jim@acmegating.com","username":"corvus"},"change_message_id":"61cf34ed748ab53b7e42bb531057ea406eeb2303","unresolved":false,"context_lines":[{"line_number":24,"context_line":"When requesting a list of buildsets while while requesting an image via the"},{"line_number":25,"context_line":"``accept`` header Zuul generates a badge for the first item instead of returning"},{"line_number":26,"context_line":"the list of buildsets. To use it put something like"},{"line_number":27,"context_line":"``https://zuul.opendev.org/api/tenant/zuul/buildsets?project\u003dzuul/zuul-website\u0026pipeline\u003dpost``"},{"line_number":28,"context_line":"into an ``\u003cimg\u003e`` tag in HTML. The browser will automatically take care of"},{"line_number":29,"context_line":"requesting an image."}],"source_content_type":"text/x-rst","patch_set":2,"id":"3fa7e38b_6bd459bd","line":27,"updated":"2020-01-14 15:46:48.000000000","message":"Why not make a new endpoint rather than overloading this via the accept header?\nMaybe something like this?\n/api/tenant/zuul/pipeline/post/badge?project\u003dzuul/zuul-website","commit_id":"dcfefd39d5c06e04bd831b9b0ab61804df2375cc"},{"author":{"_account_id":16068,"name":"Tobias Henkel","email":"tobias.henkel@bmw.de","username":"tobias.henkel"},"change_message_id":"2803ab4a7aa78021703c01cef2fc02e54e56fdd8","unresolved":false,"context_lines":[{"line_number":24,"context_line":"When requesting a list of buildsets while while requesting an image via the"},{"line_number":25,"context_line":"``accept`` header Zuul generates a badge for the first item instead of returning"},{"line_number":26,"context_line":"the list of buildsets. To use it put something like"},{"line_number":27,"context_line":"``https://zuul.opendev.org/api/tenant/zuul/buildsets?project\u003dzuul/zuul-website\u0026pipeline\u003dpost``"},{"line_number":28,"context_line":"into an ``\u003cimg\u003e`` tag in HTML. The browser will automatically take care of"},{"line_number":29,"context_line":"requesting an image."}],"source_content_type":"text/x-rst","patch_set":2,"id":"3fa7e38b_6e8ea734","line":27,"in_reply_to":"3fa7e38b_6bd459bd","updated":"2020-01-14 16:08:45.000000000","message":"Works for me too, the idea was to reuse the buildset endpoint because it basically just needs the same filters to be useful.","commit_id":"dcfefd39d5c06e04bd831b9b0ab61804df2375cc"}]}
