REST Endpoint: PATCH: https://rason.net/api/model/{nameorid}
A REST API endpoint that, with "champion" in the body, marks the ID (or the most recent ID if name is given) as the current champion. If used with "challenger", or nothing, in the body, the ID becomes unmarked as a "champion", reverting to the rule that the most recent version is the "champion".
Note: When PATCH https://rason.net/api/model/{nameorid} is used to mark a model as a "champion", the model will remain a champion even if you use PUT https://rason.net/api/model/{nameorid} to create a new version of the same model. The model will remain the champion until another call is made to PATCH https://rason.net/api/model/{nameorid} to unmark the model.
|