Class NotesCollectionController
In: app/controllers/notes_collection_controller.rb
Parent: JazzController

Notes Collection REST API

Experimental REST resource. A notes collection represents a comma-separated list of notes. Subresources of notes collection can reveal potential matches. Right now, the only implemented subresource is "chords" which lists chords (directly, or any inversion thereof) that have a direct match to the list of notes provided.

Methods

show  

Public Instance methods

GET /notes_collection/C,E,G,A GET /notes_collection/C,E,G,A.xml GET /notes_collection/C,E,G,A.js

[Source]

    # File app/controllers/notes_collection_controller.rb, line 13
13:   def show
14:     @notes_collection = NotesCollection[params[:id]]
15:                 
16:     respond_to do |format|
17:       format.html
18:       format.xml { render :xml => @notes_collection.to_xml }
19:                         format.js { render :text => @notes_collection.to_json }
20:     end
21:   end

[Validate]