queryparam

    2热度

    1回答

    即使在客户端传递true,用布尔参数调用REST也会收到值false。 客户: $http.post("http://localhost/getServers/?light=true") 服务器: @Path("/getServers") @POST @Produces({MediaType.APPLICATION_JSON}) public Response getServers(

    0热度

    1回答

    我想在我的symfony控制器上使用QueryParam。 问题是我不想接受查询中的空参数。但是,当我定义与 @REST\QueryParam(name="test" , description="The test", requirements="\w+", strict=true, nullable=false) 的QueryParam,我尝试用mysite.com/test=它仍在努力调用

    1热度

    1回答

    我的客户面临的问题与新泽西州的查询参数“>”字,我已经通过一些日期过滤器作为参数,它包含“=>”和泽西抱怨: Caused by: java.lang.IllegalArgumentException: Path segment is null at com.sun.jersey.api.uri.UriBuilderImpl.appendPath(UriBuilderImpl.java:547)

    1热度

    1回答

    这是正常行为吗?它是否在启动时以及queryParams何时加载? 我订阅我的queryParams在我ngOnInit()这样的: this.subscription = this.editorService.paramObs.subscribe( (params: Params) => { /* my code here gets executed two times */

    0热度

    2回答

    我已成立了一个简单的API终点如下: /** * * @QueryParam(name="originLat", requirements="\d+", strict=true, nullable=false) * @QueryParam(name="originLng", strict=true, nullable=false) * @QueryParam(name="departure

    -2热度

    1回答

    这是一个场景。 情况1:(@QueryParam( “用户名 ”)字符串用户名) URL:例如用户名=提供yourname 情况2:(@QueryParam(“ 用户名”)字符串名称) URL:example?username = yourname 这两种情况是使用QueryParam的正确方法。 当我使用Case1时,它的工作原理是打印yourname。但是当我使用Case2时,会打印null。

    -1热度

    1回答

    您好我使用FOSRestBundle来创建我的API。 我必须发送像ARRAY数据: "sender"=>array("name"=>"adm","city"=>"Rz") 以及更多。 我阅读文档,我不知道如何recive数据数组! 我的功能: /** * @QueryParam(name="recipient", description="Page of the overview.