$.ajax({ type: 'GET', url: 'http://localhost:8081/chargingStationApi/api/v1/dashboard/aDashboard', enctype: 'multipart/form-data', headers: authHeader, processData: false, contentType: false, data: null, success: function (response) { console.log(response); $('#weekSessionscount').text(response.payload.weekSessionscount); }, error: function (error) { console.log(error); } })
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter