rest api to send and receive midi data