back

by etoxin·4y ago·view on hn ↗
Changing APIs. When the front-end gets JSON from an API. We really don't know what we're getting. We need to liaise with the API team to figure out how these APIs work and when they change, we don't know what changed. Luckily there is a new solution. End to end type safety. Using tools like graphQL allows FED build tools to get the entire API schema and bring that into the typescript build. If the API changes, your build will break allowing you to update your app to the latest API.

Maybe we need a new HTTP method "SCHEMA" that allows the app team to get the schema directly from the API and stop sharing postman links around in chats.

1 comments
This comment makes absolutely no sense in the context of the article. Did you read it?
you're right. I only read the title and very quickly. My bad.
Good on you man. Not many people are big enough/bother to admit to being wrong on the internet.