Use Api.js to handle api calls to gitlab