如何通过webAPI传递\用户天蓝色继续令牌 [英] How to pass\user azure continue token via webAPI

查看:64
本文介绍了如何通过webAPI传递\用户天蓝色继续令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Azure与DocumentDB一起用作数据库.我使用Continue(paging)选项在search中启用分页.我从数据库中收到了以下令牌,我想将该令牌通过WebAPI http传递给我的客户端.令牌是:"{\"令牌\:\" + RID:blablablabla ==#RT:1#TRC:20#RTD:bOCA \,\"范围\:{\" min \:\" \,\" max \:\" FF \}}

我的问题是,当我从用户发送令牌时,我收到了令牌的一部分,那么我需要发送给远程客户端什么呢?谢谢!!!MAK

我通过在POST方法中发送令牌而不是在GET方法中发送令牌来解决该问题,将令牌添加到请求正文中!

解决方案

似乎您想通过

使用x-ms-continuation请求标头重新提交请求 (不能与其他查询一起使用)

I use Azure with DocumentDB as my database. I use the continue (paging) option for enable paging in search . I received the following token from my database , and I want to pass that token to my client via WebAPI http. the token is : "{\"token\":\"+RID:blablablabla==#RT:1#TRC:20#RTD:bOCA\",\"range\":{\"min\":\"\",\"max\":\"FF\"}}

My problem is that when I send the token from my user I receive part of the token, so what I need to send to my remote client? Thanks!!! MAK

I solve the problem by sending the token in POST method instead in GET method add the token in the request body !

解决方案

It seems that you’d like to implement paging through query results via the continuation token (x-ms-continuation). I do a test on my side to retrieve the next page of results from a query executed earlier, which works fine, please refer to it to construct the request.

Resubmitting the request with the x-ms-continuation request header (cannot be used with a different query)

这篇关于如何通过webAPI传递\用户天蓝色继续令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆