#1417·apidoc

Why the optional @apiQuery field also append to @apiSampleRequest

Author: BoykaZhuCreated Jul 7, 2023Updated Nov 2, 2023

When I have the optional query param. If I do not specify it in "Send a Sample Request", after clicking "Send" button, I see the param is also in the request URL.

See the below example:

  • @apiQuery {Number} [testName] Test name.

https://localhost:8885/api/testcore/getTestDetails?testName=

  • Version of apidoc: apidoc 0.54.0
  • Operating system: Windows 10
  • Node version: v14.21.2
  • Browse: Chrome