网站优化

drupal 手机端接口比较: REST vs JSON:API vs GraphQL

作者:admin 发布时间:2020-07-29

headless-cms-rest-vs-jsonapi-vs-graphql 

Based on this analysis, for Drupal core s needs, we rank JSON:API above GraphQL and GraphQL above REST. As such, I want to change mendation for Drupal 8 core. Instead of adding both JSON:API and GraphQL to Drupal 8 core, I believe only JSON:API should be added. That said, Drupal s GraphQL implementation is fantastic, especially when you have the developer capacity to build a bespoke API for your project.

从上面文章综合比较,Dries认为jsonapi 胜于 GraphQL, 而GarphQL又胜于REST 

 drupal从8.7版本开始,core里用了jsonapi。


收缩