JSON API almost always means “not REST”. In other words, it works as intended.
- 1 Post
- 340 Comments
Slotos@feddit.nlto Programmer Humor@programming.dev•Who needs MongoDB when you have JSONB?2·3 days agoI can’t muster any sarcasm out of sheer disappointment. You win this time…
Slotos@feddit.nltoPolitical Memes@lemmy.world•European Parliament Rejects Request For A Minute Of Silence For Charlie Kirk11·5 days agoOne of the comments claims he’s a victim of hate crime like George Floyd, because there were „anti-fascist engravings on bullets”.
Stop the Earth, I’m disembarking!
Slotos@feddit.nlto 196@lemmy.blahaj.zone•Increasing life expectancy must be stoppedEnglish7·12 days agoThe maximum age hasn’t changed because its increase is irrelevant for the sake of trait propagation. In fact, fast breeding population with regular turnaround can deal with environmental fluctuations way better than a long living one.
There’s nothing inherent to multicellular biology that prevents immortality. Every problem preventing us from living longer and healthier has been solved by evolution somewhere else. Often in a way that’s insultingly similar to how our bodies already work. Hell, good chunk of solutions is present in our genome never to be expressed!
But then evolution is all about populations of borderline inadequate survivors. Turns out, being depressed, hurting, and cancerous in your fifties is just good enough.
Slotos@feddit.nlto Europe@feddit.org•Russia launches propaganda campaign in Europe “Russia is not my enemy”, aiming to undermine trust in the rule of law and democratic institutionsEnglish34·18 days agoNo, my argument is that Russia’s and Russians’ actions are consistent across multiple statehoods and governments, making any attempt at redeeming them by shifting blame to a specific government an example of mental gymnastics.
Only actual attempts at taking responsibility for what Russia has been doing should count. And frankly, those Russians that do take responsibility—many of whom already got disappeared—will get erased from history and from possible future definition of „Russia” if Russia is not taken seriously to be your enemy here and now.
Slotos@feddit.nlto Europe@feddit.org•Russia launches propaganda campaign in Europe “Russia is not my enemy”, aiming to undermine trust in the rule of law and democratic institutionsEnglish94·19 days agoWhen UK refuses to return the riches they stole, we just say it like that.
When Belgia refuse to acknowledge genocide in Congo, we just say it.
When we talk about France losing colonial wars in Vietnam and Algeria, we say it.
When Israel starves an entire population in openly advertised genocide, we say it.
When we talk about Japanese massacres in China, we just say it.
When we talk about Chinese genocide of Uighurs, we just say it.
When Canada systematically oppresses indigenous population, we just say it.
But when Russia commits genocide and openly promises hellfire on the heads of those who would resist, don’t we dare say it!
This is pure mental gymnastics.
The fact that you straight ignored the core of my argument doesn’t add it any credibility either.
Slotos@feddit.nlto Europe@feddit.org•Russia launches propaganda campaign in Europe “Russia is not my enemy”, aiming to undermine trust in the rule of law and democratic institutionsEnglish236·19 days agoRussian mafia regime is Russia. Both its genocidal conquest policies and the tradition of subservience to a central authority predate the word “россия” and are consistent across governments and states.
The idea that wars of conquest and genocide Russia throws itself in since before we formulated the definition of a word „genocide” are somehow not about Russia would be the winner of every mental gymnastics competition for years to come.
Slotos@feddit.nlto History Memes@lemmy.world•Splitting Eastern Europe with the Nazis, and only joining the Allied side in '41!English24·21 days agoIt’s just that I can’t avoid seeing irony in Americans (or people overfocused on US) dismissing literally everyone to build their worldview around US faults.
I mean, take a look at dessailnes’ essays repository. The whole thing is built around US, and fuck anyone else who dares to exist in the real world, because only US and recognize adversaries of US matter, apparently.
Slotos@feddit.nlto History Memes@lemmy.world•Splitting Eastern Europe with the Nazis, and only joining the Allied side in '41!English74·22 days agoOh look, „America first”-ers have arrived!
Slotos@feddit.nltoWorld News@lemmit.online•Pentagon has quietly barred Ukrainian long-range strikes in Russia with US missiles, WSJ reports1·23 days agodeleted by creator
Slotos@feddit.nlto Selfhosted@lemmy.world•Here is the mockup pic for adding Oauth Scopes in Nextcloud, but how should it actually be implemented?English1·23 days agoI’d probably add that for something like nextcloud granted scopes can be an „orthogonal”–for the lack of a better word–subset of requested scopes.
The set of requestable scopes has to be defined by the system itself, not its specific configuration. E.g. „files:manage”, „talk:manage”, „mail:read” are all general capabilities the system offers.
However, as a user I can have a local configuration that adds granularity to the grants I issue. E.g.: „files:manage in specific folders” or „mail:read for specific domains or groups only” are user trust statements that fit into the capability matrix but add an additional and preferably invisible layer of access control.
It’s a fairly rare feature in the wild and is a potential UX pitfall, but it can be useful as an advanced option on the grant page, or as a separate access control for issued grants.
Slotos@feddit.nlto Selfhosted@lemmy.world•Here is the mockup pic for adding Oauth Scopes in Nextcloud, but how should it actually be implemented?English11·26 days agohttps://oauth.net/articles/authentication/
That aside, why is nextcloud asking for scopes from remote API in the diagram? What is drawn on the diagram has little to do with OAuth scopes, but rather looks like an attempt to wrap ACL repository access into a new vocabulary.
Scopes issued by the OAuth authorization server can be hidden entirely. The issuer doesn’t hold any obligation to share them with authorized party since they are dedicated for internal use and can be propagated via invisible or opaque means.
I really can’t figure out what’s going on with that diagram.
Slotos@feddit.nlto Programmer Humor@programming.dev•I created the weirdest political compass4·27 days agoAs a Ruby fan having a blast with Elixir, where the hell is anything BEAM related?
The compass is truly political.
I’ve been gradually optimizing towards immediate existential dread over the past few years. Still get distracted sometimes, but I’m getting there.
High wealth inequality IIRC.
Which would explain recent pivot to the right. Although that has global factors fueling it that might outweigh anything local.
Slotos@feddit.nlto World News@lemmy.world•Trump says Ukraine needs to make a deal after summit with Putin ends without ceasefireEnglish234·1 month agoAre you stupid or are you paid? „Let them have land” is literally the simplest most retarded solution, yet you dare use that descriptor against something else.
Ceding land to Russia doesn’t stop people from dying. Never did, never will do.
I get it, your sorry pathetic ass is tired of war that you’re not affected by. You’d rather sweep a few million lives under the rug and call it peace.
Well, your voice belongs under that very rug.
Slotos@feddit.nlto World News@lemmy.world•Germany: End of the line for Deutsche Bahn railway chief – DW – 08/14/2025English1·1 month agoFollowing years of under-investment and despite increasing ticket prices, DB continues to make annual losses.
Ah, so nothing’s gonna change.
However you like, REST doesn’t dictate anything there. Just be consistent and use hypermedia.
JSON APIs almost never follow REST because they almost never use JSON as hypertext. Worse, no complete stable hypertext JSON standard exists. There’s JSON-HAL, but it lacks a way to represent resource templates (think HTML’s
<form>
).Therefore, with JSON APIs ignoring one of the most basic idea behind REST, why would anyone expect them to follow another idea of REST - consistency?
REST is a deceptively simple concept. Any time you build an HTML website a human can navigate without consulting documentation, you’re doing it better than vast majority of swagger documented corporate APIs.