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
This guide assumes that you have downloaded and installed Anypoint Studio.
Complete the following procedure run this project in your own instance of Anypoint Studio.
- Import proxy-last_fm.zip in Anypoint Studio (File > Import... > Anypoint Studio > Anypoint Studio generated Deployable Archive (.zip) > select proxy-last_fm.zip > Finish).
- 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.
- In the Package Explorer pane in Studio, right-click the project name, then select Run As > Mule Application.
- Open your Web browser.
- In the address bar, type URLs like following:
- Press enter to elicit a JSON response from application.
If you want, can access this application in CloudHub. Change the value of the params for other results.