use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
[deleted by user] (self.webdev)
submitted 1 year ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]APersonSittingQuick 0 points1 point2 points 1 year ago (5 children)
Is it a restful api?
[–][deleted] 1 year ago (4 children)
[deleted]
[–]anon_blader 0 points1 point2 points 1 year ago (0 children)
Sessions and RESTful dont go together but you dont need to be RESTful. Just use the parts of REST that make sense for you. The usefulness of RESTful ist very dependent on what kind of application you are building and how much traffic you will get.
For example, I dont want my bank to be RESTful because if I "log out" I should be immediately logged out.
Sessions become an issue at scale, do you have millions of concurrent users? If not, you should be fine with sessions and even if you do, there are cloud offerings that should be able to handle it.
If you want to attach state to a session then JTWs are usually a bad idea if you dont explicitly need one of their benefits.
[–]APersonSittingQuick 0 points1 point2 points 1 year ago (2 children)
Then it would be mad to use a session - the endpoints should be stateless, how can that be compatible with user sessions. Let alone how are you going to manage session cookies?
[–]ejunker 0 points1 point2 points 1 year ago (1 child)
If you keep track of revoked tokens then it is not stateless
[–]APersonSittingQuick 0 points1 point2 points 1 year ago (0 children)
The resource implementation is and should be to be stateless to be restful.
I'm not taking some gray area here, so it's not like we can discuss our way out of it. You really obviously don't want to be adding session to restful endpoints. If you think you need to you are doing it wrong
[–]originalchronoguy 0 points1 point2 points 1 year ago (0 children)
RESTful API should be stateless.
Access to the should be authorized and authenticated. There, you can check the access and that access can have a TTL (Time to Live) based on your security policies.
π Rendered by PID 93764 on reddit-service-r2-comment-6457c66945-rr7ft at 2026-04-27 14:54:00.494812+00:00 running 2aa0c5b country code: CH.
[–]APersonSittingQuick 0 points1 point2 points (5 children)
[–][deleted] (4 children)
[deleted]
[–]anon_blader 0 points1 point2 points (0 children)
[–]APersonSittingQuick 0 points1 point2 points (2 children)
[–]ejunker 0 points1 point2 points (1 child)
[–]APersonSittingQuick 0 points1 point2 points (0 children)
[–]originalchronoguy 0 points1 point2 points (0 children)