Split api controller into two method, one for GET and one for POST methods