this post was submitted on 28 Dec 2023
1 points (53.8% liked)

Hacker News

4122 readers
2 users here now

This community serves to share top posts on Hacker News with the wider fediverse.

Rules0. Keep it legal

  1. Keep it civil and SFW
  2. Keep it safe for members of marginalised groups

founded 1 year ago
MODERATORS
 

There is a discussion on Hacker News, but feel free to comment here as well.

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 8 months ago

So the author has the argument to replace REST ... with REST, and somehow we're just all supposed to be like "genius!"...

[–] [email protected] 3 points 8 months ago

Yeah I'm not buying it yet. REST is great from my perspective, and the concern about data leakage seems like it could be curtailed significantly by creating an API contract first and clearly defining field in each object and having a proper security audit performed of the data (whoever that is in your organization). By using code generation on the contract, implementing the client and the server are then very straight forward.

[–] [email protected] 2 points 8 months ago

I think it's always good to have discussion around how we can change and improve upon what we've done for a long time.

That said, they completely lost me on "POST on /commands/report-student-lastname-change/version/1"

Holy crap, now we have to implement one of these for each field that could be changed instead of just using one PATCH? No thank you...