查询
最新公告

忍受他人的API

English | 2023 | ISBN: NA | 173 Pages | PDF, EPUB | 16 MB

How can you build the best web/mobile/client-side application, when the APIs you need to work with are poorly documented, struggle with sketchy performance, or generally make you feel like you're on a dangerous expidition into an ancient tomb, with hidden booby traps, doors operated by archaic runes, where one wrong move triggers swinging battering rambs to wreck your day into a wall of spikes.

This whole premise of an API client-server relationship is inherently fraught with danger, because going over the network for anything can lead to unexpected errors, unexpected change, connection problems... hell a rat could have chewed through a cable. This book aims to help you not just react to these problems, but ideally prempt them and build an application that laughs in the face of danger.

Just like with Build APIs You Won’t Hate, this book will take a non-academic, easy-to-read approach to some pretty complex topics around HTTP interactions, versioning, client-caching, state management, differences between how you interact with RPC, REST and GraphQL, using JSON Schema for local validation, and all sorts of other awesome stuff that nobody ever bothered to mention to you.


如何构建最好的网页/移动/客户端应用程序,当你需要与之交互的API文档不完善、性能不佳或让你感觉像是在古老墓穴中探险一样危险,充满了隐藏机关和由古文字控制的大门,一个错误的动作就会触发巨大的木槌推倒你的日程安排,变成一堵刺刀墙。 整个API客户端-服务器关系本身就充满风险,因为网络上任何事情都可能导致意外错误、变化以及连接问题……甚至一条老鼠咬断了电缆。这本书旨在帮助你不仅应对这些问题,而且尽可能地预先防范它们,并构建一个能够无视危险的应用程序。 就像《构建你不讨厌的API》一样,这本书将采取一种非学术且易于阅读的方法来探讨HTTP交互、版本控制、客户端缓存、状态管理等复杂话题,如何与RPC、REST和GraphQL进行交互的不同之处,使用JSON Schema进行本地验证以及其他各种令人惊叹的东西。但这些你从未听说过的细节。
Download from free file storage


本站不对文件进行储存,仅提供文件链接,请自行下载,本站不对文件内容负责,请自行判断文件是否安全,如发现文件有侵权行为,请联系管理员删除。