How to add custom exclude parameter via zap API - owasp

I'm looking for a way how to add custom ignore parameter via api. I.E. api equivalent of this UI screen

I'm afraid thats not supported by the API at the moment :(
Could you raise an enhancement request for that?
https://github.com/zaproxy/zaproxy/issues/new
I'm happy to do that for you, but if you do it then you'll get notified when we start working on it etc.
Thanks, Simon

Related

In openbmc what is the difference between the xyz path and the /redfish/v1 path

I am new to openbmc and trying to understand the basic details.
As I am checking docs, I found two docs, REST-cheatsheet.md & REDFISH-cheatsheet.md
They both are using the curl to get and set the entries in openbmc.
But, the path used is different.
REST-cheetsheet.md uses, xyz/openbmc_project as path but REDFISH-cheatsheet.md uses redfish/v1/ as path to get details.
If we get same details with both what exactly is the difference??
ALso I need to populate the /redfish/v1 details, how to do that??
Thank you in advance.
When OpenBMC first started, Redfish had fairly minimal industry buy-in so OpenBMC made a dection to make a custom REST API to manage itself. This is the "REST-cheatsheet". After a few years, Redfish via the DMTF began to mature and get a lot more industry buy-in. The decision was made within the OpenBMC community to deprecate the REST interfaces and move to being a Redfish managed system.
There's actually a commit up for review that would disable the REST based interface by default (https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/29344).
Try and utilize Redfish for any work you're doing, it's the direction of OpenBMC from an out of band management perspective.
Redfish is defined and secure.
The REST API is deprecated, mostly; just go with the future and that is Redfish.

How to add devices using openHAB REST API

I am looking for a way to discover a USB zstick "/dev/ttyACM0" using OpenHab command line interface as I am not going to be using a GUI and I need to create a script to automate few things.
In their website here and here OpenHab have some documentation, and that's what I found for discovery:
GET /discovery
POST /discovery/bindings/{bindingId}/scan
however I was unable to make that into a useful curl command. any idea on where to start?
I would suggest to try out the REST Documentation, for finding the right endpoint/expression.
You can install it through paper ui:
It will then be available through <YOUR_OH_IP>:<PORT>/doc/index.html.
It provides some ui with explanations and examples for the endpoints and you can test them live through it.
This should help you find the correct rest call to use with curl afterwards.
I don't know if adding devies through REST is possible. If so you can find it in the REST Documentation.
If it doesn't work though the REST API you might want to write a small bash script which adds the things you want. Then you can call your script with
executeCommandLine in a rule

Does Coverity's REST API have way to get issues per project and stream?

I wanted to get results from Coverity's REST API.
In the documentation, it states i can access
> api/viewContents/<type>/v1/<View Name>?projectId=<project> ID>&rowCount=-1
I didn't find any information if I can add more parameters such as streamID.
Is there any way to achieve this?
thanks
One way to do this would be to create different views for the user with whose credentials you are making the restapi call.
The views will look under the streams you are interested in(You would get an option to select the stream in the view edit settings). You should then be able to use the view id to get the results for the stream you need.

Is there a way to get SmartSheet Forms using the REST API?

Using the SmartSheet REST API, is there any way to get the Forms associated with a Sheet (and their - the forms' - definition/metadata, such as questions, etc.)? There doesn't appear to be anything in the documentation, but I didn't know if I'm just missing it, or if it's perhaps called something else.
You're not missing anything. At this time, accessing form data through the Smartsheet API is not supported.
They said back in 2019 that it is in the nearby pipeline. Considering its mid 2021, I feel as though it has gotten lost somewhere in this pipe.

Cakephp 3.1 REST - Filtering data

I have setup my application for REST access as per documentation. The default routes are working well. I am able to retrieve, update and delete records, however, I am not sure how I could filter data sending parameters to the controller. I wonder if I can do that using querystring or if there is a better way to accomplish that. Please can someone give me directions?
Reads about the Request object in the manual. And use the Search Plugin for filtering.
The search plugin comes with a lot of documentation that explains how to use it as well.
Your question is so generic that a proper answer would end up in a whole article - which I'm obviously not going to write, there is enough information available on HTTP requests and query params. Use Google or read these links:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages
https://www.w3.org/Protocols/HTTP/Request.html