0 ashok Asked: January 4, 20222022-01-04T06:57:08+00:00 2022-01-04T06:57:08+00:00In: Programming Get data from API using jquery 0 Get data from API using jquery apijquery Share Facebook Related Questions How do you restart Apache? aws s3 sdk returns "You have attempted to create more buckets than allowed" What does ETL mean? Is Apache running on my server? Ways to Check Apache Server Status Alternatives for Apache HTTP Server How to access bitbucket using app password How do I undo the most recent local commits in Git? How do I rename both a Git local and remote branch name? How do I rename a local Git branch? 1 Answer Voted Oldest Recent sam 2022-01-05T07:24:33+00:00Added an answer on January 5, 2022 at 7:24 am This answer was edited. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="mypanel"></div> <script> $.getJSON('http://datahub.virk.dk/api/2/rest/package/smiley-kontrolrapporter', function(data) { var resources = data.resources.map(resource => `<a href="${resource.url}">${resource.description}</a><br>`), text = `<h2>${data.license_title}</h2><br> ${resources.join('')}`; $(".mypanel").html(text); }); </script> 0 Reply Share Share Share on Facebook Share on Twitter Share on LinkedIn Share on WhatsApp Leave an answerCancel replyYou must login to add an answer. Username or email* Password* Remember Me! Forgot Password?
1 Answer