CoEDL / elpis

🙊 software for creating speech recognition models.
https://elpis.readthedocs.io/en/latest/
Apache License 2.0
152 stars 33 forks source link

Use GET or POST more discriminately #49

Closed benfoley closed 5 years ago

benfoley commented 5 years ago

Should use POST where there is change to state, eg POST to /new. Use GET where there is no change to state, eg GET /list.

benfoley commented 5 years ago

Passing JSON data with GET isn't working.. investigate later.

benfoley commented 5 years ago

So for now, any requests with a payload use POST, anything without is GET. I'd prefer to do select type things like GET /load with a name value 🤷‍♂️