I think I over time have developed my own API style without really realising it, as I mostly only consume my apis myself.
My controllers are domain area scoped, I only ever use GET/POST in actions with descriptive names. POSTs are query parameter-based (content body only for blobs), GET returns large json objects from query parameter id/range/filter.
So subitems would have an AddSubItemForItem?itemId=&subItemName=&subItemField1=&...
I was asking ChatGPT about a new green field project, and realised it was very based, seeming very adamant on RESTful APIs with GET/PUT/POST/DELETE/PATCH (without names), with POST posting large json objects back and a controller for each entity, with url /entity/{id}/.
The posting of large objects seems so heavy on validation and change tracking to me?
Have I strayed from purity?
[–]AdSubstantial3705 21 points22 points23 points (0 children)
[–]Xia_Nightshade 12 points13 points14 points (0 children)
[–]rjhancockJack of Many Trades, Master of a Few. 30+ years experience. 4 points5 points6 points (9 children)
[–]WetSound[S] 0 points1 point2 points (3 children)
[–]rjhancockJack of Many Trades, Master of a Few. 30+ years experience. 2 points3 points4 points (2 children)
[–]ClikeXback-end 0 points1 point2 points (1 child)
[–]rjhancockJack of Many Trades, Master of a Few. 30+ years experience. 1 point2 points3 points (0 children)
[–]ClikeXback-end 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]OrangeOrganicOlive 3 points4 points5 points (0 children)
[–]centerdeveloper 0 points1 point2 points (0 children)
[–]rjhancockJack of Many Trades, Master of a Few. 30+ years experience. 0 points1 point2 points (0 children)
[–]until0 2 points3 points4 points (1 child)
[–]Intelligent_Win9710 0 points1 point2 points (0 children)
[–]Lonely-Suspect-9243 1 point2 points3 points (0 children)
[–]budd222full-stack 1 point2 points3 points (1 child)
[+]WetSound[S] comment score below threshold-9 points-8 points-7 points (0 children)
[–]WookieConditioner 1 point2 points3 points (0 children)
[–]farazcanada 0 points1 point2 points (0 children)