Fix #2 and POST methods in API