I'm wondering whether what you showed here is REST. I maybe meets some indempotent guidelines, but it should be something more standard like:
```
/pages/ POST create a page
/pages/{id} PUT update a page
/pages/{id} GET get a page
```
as looking at some standard JS code, if you stick to this theme, you will some functionality for free, like getting an array of items after GET is done for you etc.
``` /pages/ POST create a page /pages/{id} PUT update a page /pages/{id} GET get a page ```
as looking at some standard JS code, if you stick to this theme, you will some functionality for free, like getting an array of items after GET is done for you etc.