rain a basic API REST for notes model