Consider this is the url:
www.app.net/api/searchtypes/862189/filters?Type=6&SearchText=School
Now this is the call:
@GET("/api/searchtypes/{Id}/filters")
void getFilterList(@Path("Id") long customerId,
@Query("Type") String responseType,
@Query("SearchText") String searchText,
Callback<FilterResponse> filterResponse);
So we have:
www.app.net/api/searchtypes/{Path}/filters?Type={Query}&SearchText={Query}
Things that come after the ? are usually queries.
本文解析了一个具体的API调用示例,详细介绍了URL结构中的路径参数和查询参数,并展示了如何通过编程方式发起请求。
1471

被折叠的 条评论
为什么被折叠?



