VocaDB Album API demo

Minimal demo to showcase VocaDB album API, using jQuery, Knockout and Bootstrap.


JavaScript code for calling the API

// Call the VocaDB API to get a page of albums
$.getJSON("http://vocadb.net/api/albums", 
	{
		query: self.searchTerm(), 
		fields: 'MainPicture', // Getting the main picture optional field
		nameMatchMode: 'Auto', // 'Auto' selects the optimal name match mode based on query
		lang: 'English'        // For this demo we want names localized in English when possible
	},
	function(result) {					
		self.items(result.items);					
	}
);