MicrosoftDocs / vsts-rest-api-specs

MIT License
166 stars 115 forks source link

No documentation on filter operations #598

Open jdholbrook81 opened 1 year ago

jdholbrook81 commented 1 year ago

Note: The Fetch Code Search Results page doesn't have a feedback option at the bottom so I had to submit this via the link on it's sibling "Overview" page.

The Code Search Results request body has a filters parameter and some examples. I need to submit a query to the api that uses logic operations. Is this possible? There's only a single example in the documentation and a simple description. The filters object schema is not documented.

In the UI for example I can create a query like:

bypass NOT "## - name: bypass" ext:yml NOT file:decorator.yml

Edit: I got this working, but documentation needs some help. I was getting a ""TF400898: An Internal Error Occurred". I needed to escape the quotes in the searchString parameter. Somewhat Misleading as I did not need to escape the quotes when I ran that search in the web UI.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.