Learn more about these different git repos.
Other Git URLs
Currently we mix creating new compose and renewing a compose into one endpoint /odcs/1/composes/, all code are put into one big method. This works but could be more clear by separating into two individual endpoints, one endpoint for one operation.
/odcs/1/composes/
POST to /odcs/1/composes/ could be still for creating a new compose.
POST
POST to /odcs/1/composes/<int:id>/renew/ could be for renewing a compose.
/odcs/1/composes/<int:id>/renew/
:+1:
Alternatively, you could PATCH to /odcs/1/composes/<int:id> to renew the existing resource.
PATCH
/odcs/1/composes/<int:id>
Either way works for me.
Metadata Update from @cqi: - Issue assigned to cqi
PR: https://pagure.io/odcs/pull-request/123
Metadata Update from @jkaluza: - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.