Modify On Demand Release Evidence POST API To Return Evidence JSON

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

We introduced an API to create Evidence for an existing Release to resolve Support On Demand Release Evidence.

API:

POST /projects/:id/releases/:tag_name/evidence

Currently, if you call the API successfully, it returns a 200 status code in the response body.

image

Improvements

It would be beneficial for the API to return the Evidence json in the response body, and that status code should be in the response header.

This is because it will help verify the evidence changes made from the API usage.

Proposal

Remove the response body, and verify that we're sending a 200 in the response status code. This will wean off any users who are using the API from checking for a 200 in the response body, and instead check for the 200 in the response header.

Issue #216946 (closed) is created to add the deprecation message.

Involved components

lib/api/releases.rb

Edited by 🤖 GitLab Bot 🤖