SkipLabs / skip

Skip is a framework for building reactive services
https://skiplabs.io
MIT License
156 stars 9 forks source link

Consider using POST instead of GET for resource reads #535

Open jberdine opened 4 days ago

jberdine commented 4 days ago
          To expand on my previous reply, we could replace `GET /v1/resource/:resource` with a `POST /v1/snapshot` passing the `resource` and `params` (and possibly a set of `keys`) as a JSON object in the request body. This would also stress the fact that doing a sync read does indeed involve instantiating a resource.

_Originally posted by @beauby in https://github.com/SkipLabs/skip/pull/514#discussion_r1855200771_