Implementing REST adapter.