debugged api layer. changed /analysis get req