implemented REST api, store decreasing with special status