Update README.md

Added API description for communication between front and back end