fixed api console to work on both get and post methods