Extra Query parameters in the REST API Url

前端 未结 4 1461
忘掉有多难
忘掉有多难 2020-12-19 04:04

In my Rest application, the resource url also support query parameters like pageSize, pageNum , name etc. So the request url looks like

/resource/{id}?pageN

4条回答
  •  渐次进展
    2020-12-19 04:21

    Just ignore it. Most other web servers would ignore request parameters it didn't understand.

    Google ignore my two extra parameters here https://www.google.com/#q=search+for+something&invalid=param&more=stuff

提交回复
热议问题