Create rest endpoint to delete api keys

This commit is contained in:
René Pfeuffer
2020-09-30 08:49:24 +02:00
parent 0923c2d63e
commit 91471c0ec0
8 changed files with 59 additions and 17 deletions

View File

@@ -21,7 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package sonia.scm.api;
import org.slf4j.Logger;
@@ -42,7 +42,7 @@ public class NotSupportedExceptionMapper implements ExceptionMapper<NotSupported
@Override
public Response toResponse(NotSupportedException exception) {
LOG.debug("illegal media type");
LOG.debug("illegal media type", exception);
ErrorDto error = new ErrorDto();
error.setTransactionId(MDC.get("transaction_id"));
error.setMessage("illegal media type");