we are using TFS on-premise.
TFS version: Microsoft Visual Studio Team Foundation Server Version 16.122.27409.2 (2018).
We need to perform TFS source control (Code Search) According to MS API documentation this the way to use TFS REST API. Build and Release API are working, but search API return 404. Search Code extension installed and working fine from TFS portal.
API Url:
POST: http://{DNS}:8080/tfs/{Collection}/{Project}/_apis/search/codesearchresults?api-version=4.1-preview.1
Please help, what I'm, doing wrong?
You can't just open it in a browser. You have to provide a request body, as expressed clearly in the API examples: