Update requirements
refactor API to restful comatible