简体   繁体   English

RestHeart API的POST方法

[英]POST method for RestHeart API

We know that RESTHEART API can provide data using GET method. 我们知道RESTHEART API可以使用GET方法提供数据。 But if the list of paramaters grows then GET Rest call will hit the limit. 但是,如果参数列表增加,那么GET Rest调用将达到极限。 Please confirm if we can use POST calls to fetch data via rest heart. 请确认我们是否可以使用POST调用通过安息心获取数据。

something like GET /test/coll?filter={'title':{ << 1000s.. params >>}} 类似于GET / test / coll?filter = {'title':{<< 1000s .. params >>}}

Here I am just illustrating the long list of parameters using << 1000 params >> 在这里,我仅使用《 1000个参数》来说明一长串参数

Regards, Abhinav 问候,Abhinav

RESTHeart strictly follows the HTTP protocol and the RESTful paradigm: RESTHeart严格遵循HTTP协议和RESTful范例:

According to the RFC 261 根据RFC 261

POST 开机自检

The POST method is used to request that the origin server accept the POST方法用于请求原始服务器接受
entity enclosed in the request as a new subordinate of the resource 请求中包含的实体作为资源的新下属
identified by the Request-URI in the Request-Line. 在请求行中由Request-URI标识。

We have discussed between the community about allowing to GET data with a POST but rejected it. 我们在社区之间讨论了关于允许通过POST获取数据,但拒绝了它。

Said that, your need is clear but it can be addressed with a RESTHeart custom Application Logic Handler. 话虽如此,您的需求很明确,但是可以使用RESTHeart自定义应用程序逻辑处理程序来解决

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM