debian-forge-composer/internal
Jacob Kozol 81d9fef76a api: update api error responses to equal lorax's
In order to maintain parity with lorax the api needs to reply with an
error message equivalent to that used by lorax. Error messages are now
returned inside an error object that contains an id, message, and
optional status code.

For some routes, there are errors when no url parameters are passed. The
httprouter was using named parameters of the form /:param which does not
match for empty parameters. Now, it has been updated to use the
catch-all parameters of the form /*param. This change allows the case of
no parameters. However, parameters will now include a "/" as
their first character. This needs to be removed from the string in the
route handler.

In order to provide the proper error message for
/modules/list/<modules>, searching for the modules needed to be updated.
The requested modules and known packages are iterated over and if there
is a match the module is added to the response. Also, the found module
is dropped from the list of requested modules. If this list is not empty
after searching all of the modules then an error is returned containing
the name of the non-existant module.
2019-10-23 01:08:03 +02:00
..
blueprint Adjust AMI output to the Lorax one 2019-10-23 01:05:14 +02:00
jobqueue osbuild-composer: Rename module to github.com/osbuild/osbuild-composer 2019-10-08 21:44:57 +02:00
pipeline QCOW2 image generation and output test 2019-10-22 13:52:36 +02:00
rpmmd Remove process termination in case of error from runDNF function 2019-10-14 23:43:04 +02:00
store osbuild-composer: Rename module to github.com/osbuild/osbuild-composer 2019-10-08 21:44:57 +02:00
target pipeline/target: implement as variant types 2019-09-28 17:49:07 +02:00
weldr api: update api error responses to equal lorax's 2019-10-23 01:08:03 +02:00