REST API for notes
added tests