Skip to content

[BUG]: Dev Proxy does not restart when updating CRUD API data file #1390

@garrytrinder

Description

@garrytrinder

Description

When updating data files, the changes should be applied immediately.

Expected behaviour

When updating data files, the changes should be applied immediately.

Actual behaviour

New data is not returned until after restarting Dev Proxy.

Steps to reproduce

  1. Create config file configured with CRUD API plugin.
  2. Create CRUD API file and configure data file.
  3. Start Dev Proxy
  4. Update data file

Dev Proxy Version

v1.1.0

Operating system (environment)

macOS

Shell

zsh

Configuration file

{
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/rc.schema.json",
"plugins": [
{
"name": "LatencyPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
"configSection": "latencyPlugin"
},
{
"name": "CrudApiPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
"configSection": "testsApi"
},
{
"name": "CrudApiPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
"configSection": "refinersApi"
}
],
"urlsToWatch": [
"https://api.axo.com/*"
],
"latencyPlugin": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/latencyplugin.schema.json",
"minMs": 200,
"maxMs": 500
},
"testsApi": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/crudapiplugin.schema.json",
"apiFile": "tests-api.json"
},
"refinersApi": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/crudapiplugin.schema.json",
"apiFile": "refiners-api.json"
}
}

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedWe'd appreciate your help

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions