addFlashcard(), a POST api