REST API: Writing method must be accessed via POST