api工具 graphql_使用GraphQL构建更好的可发现的API

api工具 graphql

Building a web Application Programming Interface (API) traditionally involves a significant amount of work: defining routes, writing functions to fetch and shape data, ensuring a consistent interface, documenting the API with tools, and more. The list goes on and on.

传统上,构建Web应用程序编程接口(API)涉及大量工作:定义路由,编写函数以获取和成形数据,确保接口一致,使用工具记录API等。 清单不胜枚举。

GraphQL, an open source alternative framework for fetching data over HTTP, seeks to reduce much of the overhead of building more traditional web APIs. All data from a web service is provided at a single endpoint, and consumers can discover data schemas to then build and run queries to get only the data they need. The result is faster and more efficient development experience in many aspects of building and consuming the data layer.

GraphQL是一种用于通过HTTP提取数据的开源替代框架,它旨在减少构建更多传统Web API的大量开销。 来自Web服务的所有数据都在单个端点上提供,使用者可以发现数据模式,然后构建和运行查询以仅获取所需的数据。 结果是在构建和使用数据层的许多方面获得了更快,更有效的开发经验。

In this talk at the PDX Node meetup at OSCON 2018, software developer Daniel Lemay gives an introduction to GraphQL and provides demos and resources for getting started with the framework.

在OSCON 2018的PDX Node会议上的演讲中,软件开发人员Daniel Lemay对GraphQL进行了介绍,并提供了有关入门该框架的演示和资源。

You can watch the video below, or on the PDX Node YouTube channel (25 minute watch).

您可以观看下面的视频,也可以在PDX Node YouTube频道上观看(25分钟观看)。

翻译自: https://www.freecodecamp.org/news/better-apis-graphql/

api工具 graphql

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值