| |
@@ -36,12 +36,15 @@
|
| |
return dict_data
|
| |
|
| |
|
| |
- @apiv3_ns.route("/build-chroot/<int:build_id>/<chrootname>", methods=GET)
|
| |
+ @apiv3_ns.route("/build-chroot", methods=GET)
|
| |
+ @apiv3_ns.route("/build-chroot/<int:build_id>/<chrootname>", methods=GET) # deprecated
|
| |
+ @query_params()
|
| |
def get_build_chroot(build_id, chrootname):
|
| |
chroot = ComplexLogic.get_build_chroot(build_id, chrootname)
|
| |
return flask.jsonify(to_dict(chroot))
|
| |
|
| |
|
| |
+ @apiv3_ns.route("/build-chroot/list", methods=GET)
|
| |
@apiv3_ns.route("/build-chroot/list/<int:build_id>", methods=GET)
|
| |
@pagination()
|
| |
@query_params()
|
| |
@@ -52,7 +55,9 @@
|
| |
return flask.jsonify(items=chroots, meta=paginator.meta)
|
| |
|
| |
|
| |
- @apiv3_ns.route("/build-chroot/build-config/<int:build_id>/<chrootname>", methods=GET)
|
| |
+ @apiv3_ns.route("/build-chroot/build-config", methods=GET)
|
| |
+ @apiv3_ns.route("/build-chroot/build-config/<int:build_id>/<chrootname>", methods=GET) # deprecated
|
| |
+ @query_params()
|
| |
def get_build_chroot_config(build_id, chrootname):
|
| |
chroot = ComplexLogic.get_build_chroot(build_id, chrootname)
|
| |
return flask.jsonify(build_config(chroot))
|
| |
Fix #1352
We were sending
build_id
andchrootname
values as a part of theURL path as well as query parameters. I am dropping them from the URL
path, they are unnecessary there (and IMHO not really used).
I am not changing the original route on frontend to avoid breaking a
backward compatibility, but rather adding a new simple route.
So, at this point, both old URL, e.g.
and new URL
will work