4 ms·
I thought you were supposed to avoid sessions and states in apps built on top of RESTful APIs. What am I missing?
by Kiro 12y ago
I thought you were supposed to avoid sessions and states in apps built on top of RESTful APIs. What am I missing?
- ipedrazas 12y agoWell, you can always protect an endpoint by requiring "whatever" condition. Impossing conditions for requests is different than "having a state". State happens in the client, requests to the backend come with pre-conditions.
- coldtea 12y agoThat this is not REST api level session/state. It's an auth session, which is orthogonal (and transparent) to the REST api (e.g with cookies).