Moved rest api and json call from readme to this file.
Added extra rest calls.