Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT Nachrichten22. September(22.09.2026 um 00:05 Uhr)
IT NachrichtenLizenzprobleme: AnyDesk und TeamViewer(22.09.2026 um 00:30 Uhr)
Apple iOS & macOSApple's iOS 27.2 beta 2 reveals new anti-snatching protections(22.09.2026 um 00:27 Uhr)
AI & KI NachrichtenUC Irvine to Study AI for Writing Instruction(21.09.2026 um 23:31 Uhr)
AI & KI NachrichtenBurnham to call for global effort to control threats posed by AI(21.09.2026 um 23:30 Uhr)
IT Nachrichten22. September(22.09.2026 um 00:05 Uhr)
IT NachrichtenLizenzprobleme: AnyDesk und TeamViewer(22.09.2026 um 00:30 Uhr)
Apple iOS & macOSApple's iOS 27.2 beta 2 reveals new anti-snatching protections(22.09.2026 um 00:27 Uhr)
AI & KI NachrichtenUC Irvine to Study AI for Writing Instruction(21.09.2026 um 23:31 Uhr)
AI & KI NachrichtenBurnham to call for global effort to control threats posed by AI(21.09.2026 um 23:30 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Ditch REST, go intent based

At AlertPix we allow streamers to receive donations from their audience via Pix Instant Payment and show an alert on the live stream. Our API exclusively utilizes the GET and POST HTTP methods. We think that we can use native features as…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

At AlertPix we allow streamers to receive donations from their audience via Pix Instant Payment and show an alert on the live stream.



Our API exclusively utilizes the GET and POST HTTP methods. We think that we can use native features as much as we can. We bring this inspiration from the <form> element which does not support form submissions PUT, PATCH, or DELETE methods.



In this article, we explore the reasons why your API might not require more than two request methods: GET and POST.






REST APIs



APIs are designed for machines to communicate with each other, and there are various standards when using HTTP. The most commonly used standard is REST, which provides a great pattern for constructing APIs. If we adhere to it, we end up with a RESTful API.



However, adhering to REST often compels us to write object-oriented code and use a variety of HTTP methods. While this isn't inherently problematic, one significant drawback is that we need to structure each route for each entity in the same way:




POST /book
GET /book/:id
DELETE /book/:id
PUT /book/:id
PATCH /book/:id






If we want to add another domain we certainly will use the same route structure for it:




POST /author
GET /author/:id
DELETE /author/:id
PUT /author/:id
PATCH /author/:id






What if we need to get a book by an author? How should we do it?




GET /books/:id/author/:id






Or




GET /author/:id/books/:id






In all honesty, it's not a matter of whether it's readable or understandable; it's about the need for such complexity in the first place.






APIs are for humans



While APIs are intended for machines to consume, they are designed and utilized by humans. Human developers read the documentation and test the integration, so there's no need for excessive complexity in HTTP endpoints. Instead, we can focus on making the API more intent-based.






Going Intent-Based



Now that we understand that most of the time the integration will be done by humans. We can make it as swift as possible.



The previous example to get a book by an author can be done this way:




GET /books/by-author/:id






If you literally remove the special characters, you can read it just like an English sentence:




GET books by author id






This shift towards an intent-based approach can make API usage more intuitive and user-friendly.






Going beyond



If we want to create, edit or delete an entity, we can easily have different endpoints for that just like this:




POST /books/create {...}
POST /books/edit/:id {...}
POST /books/delete/:id






If we where in REST, editing and deleting whould be a mess. And we all know that, we often forget the difference between PATCH and PUT.



By going intent based we make our APIs more human readable.

This pattern is presented in our APIs and micro services so integration is always a breeze.






AlertPix

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Ditch REST, go intent based

Thematisch verwandte Begriffe: Ditch, REST, intent, based · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-49449 | Joplin is an open source note-taking and to-do application that organise…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick