News for hackers. Stuff that matters.
Re:Show HN: REST Alternative to GraphQL and tRPC by nlarew on Thursday October 12, 2023 @01:03PM (#37859881)
> no way I am going to write openapi spec

I don't get the stubbornness here. OpenAPI is not hard??? It's just JSON schema + some routes and effectively conveys the same information as a GraphQL schema, possibly more if you're not using custom directives and such.

> Then each side takes the contract and go implement the frontend and the backend and it just works

This is not unique to GraphQL. There's almost zero difference between programming to an OpenAPI spec vs a GraphQL schema - they're both API interface definitions.

There are no comments on this comment yet.