Comment

Comment by __experiment__

I need input on this new API design, i call if 'Functional APIs(fAPIs)'

Given that hacker news is mostly developer-oriented i would like your opinion as to why we don't use "HTTP APIs" as mostly single functions instead of the REST and GraphQL horrors i see on a weekly basis.

why not:

https://example.org/api_json_create_new_user

body -> { 'name': 'new user' 'email': '[email protected]' 'password_hash': '50e721e49c013f00c62cf59f2163542a9d8df02464efeb615d31051b0fddc326' ... }

200 OK

instead of

https://example.org/v1/users/create/new <body>

200 OK

i attached a PDF link with more details.

criticism is welcomed.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton