cgwalters / coreos-diskimage-rehydrator

Part of implementing https://github.com/openshift/enhancements/pull/201
Apache License 2.0
6 stars 1 forks source link

Implement webserver/interface #22

Open cgwalters opened 3 years ago

cgwalters commented 3 years ago

It would make total sense to support being run as a webserver too, with a pretty interface.

One uncertainty is whether the API should appear just as a GET or require a POST to generate an image. Generating some images is going to be sufficiently slow that I worry clients may time out on a GET request.

ashcrow commented 3 years ago

Agreed. I think a PUT or POST makes more sense for an API. Possibly respond back with a uuid which can be retrieved with a GET on progress.