Тёмный

Spring Tips: @Controllers: give HTTP a REST 

SpringDeveloper
Подписаться 203 тыс.
Просмотров 19 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@JentaroYusong
@JentaroYusong 3 года назад
Please make a video about a more domain-centric API design, maybe with CQ(R)S. In my experience, level 2 "REST" APIs are oftentimes just "database CRUD over HTTP", leading to leakage of implementation details into the public API of the service, which results between high coupling between a client and the server implementation, which is a malpractice in my opinion. Despite that you loose semantic information about the actions performed in your system early on, as you push the usecases of the domain upwards, basically to the clients. For example, what does a "PATCH /api/todo-items/3" mean? Has the TODOs title been changed? Has it been ticked of? Marked as irrelevant? Has someone been assigned to the task? A combination of these actions? Compare this with a more domain-centric command based API design, e.g. "POST /api/commands/tick-todo-item { id: 3 }". I personally think the latter one is far more descriptive and does not loose the domain semantics early on. Don't get me wrong here. I think a more resource based approach can be useful, e.g. for more "backing services", but the more an API is designed for a specific domain problem, that being "closer to the end users", the less REST is helpful in my opinion.
@rebelsdeveloper367
@rebelsdeveloper367 3 года назад
big word there . why limit rest or url ? the old way you dont have think one endpoint is enough . you dont need /api/read / api/update/id. This style of routing much better for web crawling but no point on intranet application.
@chrizzking
@chrizzking 2 года назад
Nerd tv at its best 👌
@30harshal
@30harshal 3 года назад
rest in peace
@nmdollarl8798
@nmdollarl8798 3 года назад
Dr Strange? magic
@zickzack987
@zickzack987 3 года назад
Umm... Sudden end. Where is the rest part?
@RajeshKumar5
@RajeshKumar5 3 года назад
Good
@wazeeharaa8100
@wazeeharaa8100 3 года назад
Man what are you coming to say
@sethunder332
@sethunder332 2 года назад
I think it's not for beginners.
@mrrishiraj88
@mrrishiraj88 3 года назад
Hi
@s1n7ax
@s1n7ax 3 года назад
that screen recording is in 144p
@juliuspms
@juliuspms 3 года назад
What a long and boring video...
Далее
Spring Cloud Contract (HTTP)
42:19
Просмотров 16 тыс.
Spring Tips: Kubernetes Native Java
29:23
Просмотров 34 тыс.
DIY Pump Solutions
00:18
Просмотров 880 тыс.
Spring Tips: Spring GraphQL
47:25
Просмотров 32 тыс.
Spring Tips: @Controllers: GraphQL
15:44
Просмотров 12 тыс.
Spring Tips: @Controllers: RSocket
8:37
Просмотров 13 тыс.
Spring Tips: @Controllers: WebSockets
12:03
Просмотров 37 тыс.
Spring Tips: Spring Plugin
8:07
Просмотров 20 тыс.
Spring Security Patterns
54:26
Просмотров 28 тыс.
Spring Tips: Bootiful Edge Services
30:05
Просмотров 13 тыс.
Spring Tips: Spring Native 0.11!
59:35
Просмотров 24 тыс.
Spring Tips: Reactive Summit Keynote: Here and There
34:48
Spring Tips: @Controllers: All Together Now
9:21
Просмотров 16 тыс.