API now accepts get and POST.