RESTful API - Correct behaviour when spurious/not requested parameters are passed in the request

后端 未结 6 1913
余生分开走
余生分开走 2020-12-13 14:50

We are developing a RESTful api that accepts query parameters in the request in the form of JSON encoded data.

We were wondering what is the correct behaviour when <

6条回答
  •  长情又很酷
    2020-12-13 15:09

    Just ignore them.

    Do not give the user any chance to reverse engineer your RESTful API through your error messages.

    Give the developers the neatest, clearest, most comprehensive documentation and parse only parameters your API need and support.

提交回复
热议问题