Giter VIP home page Giter VIP logo

last-fm-proxy-mule's Introduction

Proxying Last.FM API with MuleSoft Anypoint Platform™

Built with MuleSoft Anypoint Platform™ and utilizing Last.FM API, this proxy brings the artist details or track details in JSON format, depending of what parameter is sent. When only "artist" parameter is sent, an JSON with artist details is returned. When both parameters "artist" and "track" are sent, a JSON with track details is returned.

Two parameters are received:

  • artist (required): The artist name
  • track (optional): The track name

Assumptions

This guide assumes that you have downloaded and installed Anypoint Studio.

Set Up and Run application in Anypoint Studio

Complete the following procedure run this project in your own instance of Anypoint Studio.

  1. Import proxy-last_fm.zip in Anypoint Studio (File > Import... > Anypoint Studio > Anypoint Studio generated Deployable Archive (.zip) > select proxy-last_fm.zip > Finish).
  2. In your application in Studio, click the Global Elements tab. Double-click the HTTP Listener Configuration global element to open its Global Element Properties panel. Change the contents of the port field to required HTTP port (e.g. 8081) and save.
  3. In the Package Explorer pane in Studio, right-click the project name, then select Run As > Mule Application.
  4. Open your Web browser.
  5. In the address bar, type URLs like following:
  6. Press enter to elicit a JSON response from application.

Accessing deployed application in CloudHub

If you want, can access this application in CloudHub. Change the value of the params for other results.

last-fm-proxy-mule's People

Contributors

chbhernani avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.