<div class="form-group">
  <label>File id</label>
  <input id="mediaId" type="text" class="form-control" placeholder="e.g. 565eabfbfdfe600021f8d1e0" />
</div>
<button id="getFile">Get public file</button>
<img id="response" />
$(function() {
  $("#getFile").click(function() {
    $("#response").attr('src', 'https://api.yaas.io/hybris/media/v2/public/files/' + $("#mediaId").val());
  });
});