Skip to content

Commit 81d8ba5

Browse files
Updates
1 parent bddcc43 commit 81d8ba5

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

.github/copilot-instructions.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,27 @@ After upgrading, use VS Code's **Problems panel** (or `get_errors` tool) to conf
206206
- `body: null` may not be allowed (use `body: ""` instead)
207207
- New required properties may be added
208208
- Property types may become stricter
209+
210+
## Common Mistakes to Avoid
211+
212+
### PRESET Metadata
213+
- **PRESET should be "No"** for most samples
214+
- Only set `"PRESET": "Yes"` if the sample is **reusable for other purposes** (e.g., a generic configuration that developers can apply to their own APIs)
215+
- Having a `devproxyrc.json` config file does NOT automatically make it a preset
216+
217+
### Startup Commands
218+
- `.devproxy/devproxyrc.json` is a **default path** that Dev Proxy looks for automatically
219+
- When config is in `.devproxy/devproxyrc.json`, the startup command should just be `devproxy` (no `--config-file` needed)
220+
- Only use `--config-file` when the config file is in a non-default location or has a non-default name
221+
222+
### Updating Dates
223+
- When updating sample dates, **always update both files**:
224+
- `assets/sample.json`: Update `updateDateTime` field
225+
- `README.md`: Update the version history table with the new date
226+
- Dates must stay in sync between these two files
227+
- **Pre-release updates** (sample not yet merged to main):
228+
- Update both `creationDateTime` and `updateDateTime` in `sample.json`
229+
- Update the v1.0 date in the README version history table
230+
- **Post-release updates** (sample already in main):
231+
- Only update `updateDateTime` in `sample.json`
232+
- Add a new version entry (e.g., 1.1) to the README version history table

samples/api-key-protected-mock/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This sample demonstrates how to simulate API key authentication for mock APIs us
1818

1919
Version|Date|Comments
2020
-------|----|--------
21-
1.0|January 10, 2026|Initial release
21+
1.0|January 18, 2026|Initial release
2222

2323
## Minimal path to awesome
2424

samples/api-key-protected-mock/assets/sample.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"longDescription": [
1010
"Demonstrates how to simulate API key authentication for mock APIs using Dev Proxy with AuthPlugin and MockResponsePlugin."
1111
],
12-
"creationDateTime": "2026-01-10",
13-
"updateDateTime": "2026-01-10",
12+
"creationDateTime": "2026-01-18",
13+
"updateDateTime": "2026-01-18",
1414
"products": [
1515
"Dev Proxy"
1616
],
1.22 MB
Loading

0 commit comments

Comments
 (0)