简体   繁体   English

Google Cloud Datastore如何使用http请求创建,更新和删除实体

[英]Google Cloud Datastore how to create, update and delete entity with http request

As Google Cloud Datastore client libraries are available for some language only. 由于Google Cloud Datastore 客户端库仅适用于某些语言。 Now, How can do operation like create, update and delete of entity without using client libraries with HTTP request. 现在,如何在不将客户端库与HTTP请求一起使用的情况下执行诸如创建,更新和删除实体之类的操作。

数据存储区API基于HTTP和JSON构建,因此任何标准的HTTP客户端都可以向其发送请求并解析响应。您可以在此处找到有关构建灵活运行时的更多信息

One of the classic way to do this is to expose the datastore CRUD operations through a set of REST APIs. 一种典型的实现方法是通过一组REST API公开数据存储区CRUD操作。 Google offers Cloud Endpoints which are a set of "tools, libraries and capabilities that allow you to generate APIs and client libraries from an App Engine application" https://cloud.google.com/appengine/docs/java/endpoints/ You can have a look at this tutorial https://rominirani.com/google-cloud-endpoints-tutorial-part-1-b571ad6c7cd2#.1j9holpdt Google提供了Cloud Endpoints,它们是一组“工具,库和功能,可让您从App Engine应用程序生成API和客户端库” https://cloud.google.com/appengine/docs/java/endpoints/看看这个教程https://rominirani.com/google-cloud-endpoints-tutorial-part-1-b571ad6c7cd2#.1j9holpdt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google Cloud Datastore使用REST http请求创建新的种类 - Google Cloud Datastore create new Kind with REST http request 如何使用谷歌云数据存储从实体中删除属性/值 - How to delete a property/value from an entity using google cloud datastore 如何删除谷歌云数据存储中的一种 - How to delete a kind in Google cloud datastore 如何删除Google Cloud数据存储区中的命名空间 - How to delete namespace in Google Cloud datastore 在Google云数据存储区python中更新实体的一个属性 - Update one property of an entity in google cloud datastore python 如何实现“共享计数器”以在Cloud Datastore中创建或更新单个实体的每秒写入次数超过5次? - How to implement “Sharding Counters” to create or update single entity more than 5 writes per second in Cloud Datastore? 如何在没有App Engine的情况下在Android中获取Google Cloud Datastore实体? - How to get a Google Cloud Datastore entity in Android without App Engine? 如何始终从Google Cloud Datastore中读取最新实体 - How to always read most recent entity from Google Cloud Datastore 如何使用名称中的破折号访问Google Cloud Datastore实体? - How to access Google Cloud Datastore entity with dash in its name? Google数据存储区撤消了更新还是删除? - Google Datastore reverse an update or delete?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM