Closed benfoley closed 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.
/new
/list
Passing JSON data with GET isn't working.. investigate later.
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 🤷♂️
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
.