2 ms·
Because REST assumes that every action you could ever want to take is acting upon some object. So you rename /login to /users/login and pat yourself on the back
by phendrenad2 5y ago
Because REST assumes that every action you could ever want to take is acting upon some object. So you rename /login to /users/login and pat yourself on the back. Then you realize that the silver bullet failed to get you one inch closer to your goal and you turn against it. Then you go look into GraphQL and spend weeks perfecting your schema. Then you realize you wasted your time yet again, and you go just use whatever Google uses (gRPC) like you should have in the first place.
- rektide 5y agoI generally find that the subject-verb idea is powerful, well represented in langauge, & helps form a better groundwork for others to elaborate the pattern on top of. I also don't see grpc or whatever as a good counter-answer/clash to this kind of anti-meaning nihilism: api design there often ends up facing many of the same quandries.