Skip to content

Conversation

@SachinAditya
Copy link
Contributor

This PR adds general guidance on using the ZAP API with curl,
focusing on parameter encoding, boolean parameters, and common
pitfalls when constructing API requests.

The documentation is added at a general level without modifying
any generated or endpoint-specific API definitions.

This follows feedback provided on PR #244 and Issue #88, by keeping
endpoint documentation unchanged while improving overall API
usability for users interacting with the ZAP API via curl.

Expanded the description for the addAlertFilter endpoint to include additional notes and requirements.

Signed-off-by: SachinAditya <98205043+SachinAditya@users.noreply.github.com>
This pull request adds general guidance on using the ZAP API with curl,
focusing on common usage details such as parameter encoding, boolean
parameters, and typical pitfalls when constructing API requests.

The documentation is added at a general level (welcome/introduction),
without modifying any generated or endpoint-specific API definitions.

This change follows the feedback provided on PR zaproxy#244 and Issue zaproxy#88,
by keeping endpoint documentation unchanged while improving overall
API usability for users interacting with the ZAP API via curl.


Signed-off-by: Sachin Vishwakarma <98205043+SachinAditya@users.noreply.github.com>
This pull request adds general guidance on using the ZAP API with curl,
focusing on common usage details such as parameter encoding, boolean
parameters, and typical pitfalls when constructing API requests.

The documentation is added at a general level (welcome/introduction),
without modifying any generated or endpoint-specific API definitions.

This change follows the feedback provided on PR zaproxy#244 and Issue zaproxy#88,
by keeping endpoint documentation unchanged while improving overall
API usability for users interacting with the ZAP API via curl.


Signed-off-by: Sachin Vishwakarma <98205043+SachinAditya@users.noreply.github.com>
This change moves the general curl usage guidance under the
"Access the API" section, where the API URL format and access
details are already introduced.

The content remains general and avoids modifying any
generated or endpoint-specific API documentation, following
maintainer feedback.

This improves the structure and readability of the
documentation for users interacting with the ZAP API via curl.


Signed-off-by: Sachin Vishwakarma <98205043+SachinAditya@users.noreply.github.com>
@SachinAditya
Copy link
Contributor Author

Hi @mentor-thc202 👋
Just a gentle follow-up on this PR.
Please let me know if any changes are needed from my side.
Thanks for your time!

Signed-off-by: Sachin Vishwakarma <98205043+SachinAditya@users.noreply.github.com>
@SachinAditya
Copy link
Contributor Author

Good catch, you’re right — that statement was too strong.
I’ve clarified the wording since some boolean parameters have defaults.

Signed-off-by: Sachin Vishwakarma <98205043+SachinAditya@users.noreply.github.com>
@SachinAditya
Copy link
Contributor Author

Thanks for pointing that out, you’re right.
Those changes were unrelated to the curl guidance and shouldn’t be part of this PR.
I’ve reverted the extra changes so the PR now only contains the intended curl-specific updates.

@SachinAditya
Copy link
Contributor Author

Thanks for the detailed review @thc202, much appreciated.

I’ve now:

  • Removed the non–curl-specific points
  • Clarified the boolean parameter wording
  • Reverted unrelated API basics changes

The PR should now only contain curl-specific guidance as discussed.

Please let me know if anything else should be adjusted.
Thanks again for your time.

@thc202
Copy link
Member

thc202 commented Jan 16, 2026

This is still pending #247 (comment) see the whole diff in https://github.com/zaproxy/zap-api-docs/pull/247/files

Signed-off-by: Sachin Vishwakarma <98205043+SachinAditya@users.noreply.github.com>
Signed-off-by: Sachin Vishwakarma <98205043+SachinAditya@users.noreply.github.com>
Signed-off-by: Sachin Vishwakarma <98205043+SachinAditya@users.noreply.github.com>
Signed-off-by: Sachin Vishwakarma <98205043+SachinAditya@users.noreply.github.com>
@thc202 thc202 enabled auto-merge (squash) January 16, 2026 19:49
@thc202
Copy link
Member

thc202 commented Jan 16, 2026

Thank you!

Comment on lines 109 to 110
```
### Client SDKs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a blank line between the code fence and heading.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kingthorin
Fixed, thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kingthorin
Fixed, thanks!

Added a new section for Client SDKs in the welcome documentation.

Signed-off-by: Sachin Vishwakarma <98205043+SachinAditya@users.noreply.github.com>
auto-merge was automatically disabled January 17, 2026 13:20

Head branch was pushed to by a user without write access

@kingthorin kingthorin merged commit a0f2f3e into zaproxy:main Jan 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants