Giter VIP home page Giter VIP logo

api-design-guide's Introduction

介绍

这是一篇网络 API 的通用设计指南,它从2014年开始被 Google 使用,并且指导我们设计了 Cloud API 和 其它 Google API。我们将此指南分享出来希望能让人们更便捷地合作。

Google Cloud Endpoints 的开发者在设计 gRPC API 时可能会发现这篇指南特别有用,我们强烈推荐这类开发者使用这些设计原则,但我们不会要求非 Google 员工必须遵守。

此指南适用于 REST APIRPC API,特别是 gRPC API,gRPC API 使用 Protocol Buffers 来定义API接口,使用 API Service Configuration 来配置 API 服务,包括 HTTP 映射(HTTP mapping)、日志和监控。HTTP 映射功能被 Google API 和 Cloud Endpoints gRPC API 用来进行 JSON/HTTP 与 Protocol Buffers/RPC 的转换。

新的风格和设计被采纳和核准后将会被添加进来,所以此指南会持续更新。并且API设计的艺术与技术会一直进步,所以此指南永远不会“完结”。

约定

这些关键词MUST”、MUST NOTREQUIREDSHALLSHALL NOTSHOULDSHOULD NOTRECOMMENDMAYOPTIONAL 的解释请参考 RFC 2119中文解释(翻译时我会保留这些单词并且加粗显示)。

api-design-guide's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

miffa

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.