Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a list of URLs that Dev Proxy intercepted. Use this plugin to learn which URLs your app is calling and how to configure the Dev Proxy to simulate behaviors for them.
Tip
To save the summary to a file, use a reporter plugin in your configuration.
Configuration example
{
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v4.0.0/rc.schema.json",
"plugins": [
{
"name": "UrlDiscoveryPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll"
}
]
}
Configuration properties
None
Output
UrlDiscoveryPlugin creates its report when you stop recording. The report contains the unique URLs of the requests that Dev Proxy intercepted, sorted alphabetically. Each URL is the full request URL, including its query string.
To save the report as JSON, add the JsonReporter after UrlDiscoveryPlugin in your configuration. JsonReporter writes the report to a file named UrlDiscoveryPlugin_JsonReporter.json in the current working directory, or in the folder that you specify using the reportsFolder setting or the --report-dir option. If the file already exists, Dev Proxy appends a timestamp to the file name, for example UrlDiscoveryPlugin_JsonReporter_20261105104151.json.
The file contains strict JSON with a urlsToWatch array of the intercepted URLs. You can parse it with standard JSON parsers, like JSON.parse in JavaScript or jq, or copy the array to the urlsToWatch property in your Dev Proxy configuration:
{
"urlsToWatch": [
"https://jsonplaceholder.typicode.com/posts",
"https://jsonplaceholder.typicode.com/users",
"https://jsonplaceholder.typicode.com/users/1"
]
}
| Property | Description |
|---|---|
urlsToWatch |
Array of strings. The unique URLs of the requests that Dev Proxy intercepted while recording, sorted alphabetically. The URLs don't contain wildcards |
To learn how to use wildcards and exclude URLs in urlsToWatch, use the MarkdownReporter or PlainTextReporter, which include this guidance in their reports.
Note
Before Dev Proxy v4.1.0, JsonReporter saved the report to the UrlDiscoveryPlugin_JsonReporter.jsonc file, which contained comments that standard JSON parsers can't read.