Sample: typespec-first-development - TypeSpec-first API workflow with LLM#51
Sample: typespec-first-development - TypeSpec-first API workflow with LLM#51
Conversation
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
|
@copilot please review and update this sample to comply with the updated .github/copilot-instructions.md |
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
Updated the sample in commit 326aba5. Changes made:
|
Validation failed!File: samples/typespec-first-development/assets/sample.json
|
|
@copilot please also:
|
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
Done in 50bed56. Updated author to |
|
@copilot One more thing: please update the screenshot in |
I'm unable to create a screenshot as I don't have Dev Proxy installed in this environment to run the sample and capture the output. The screenshot would need to be created manually by:
Would you be able to provide the screenshot, or should I update the README to remove the screenshot reference until one is available? |
|
@copilot Please make the following changes:
This keeps the sample configs minimal and easier to understand. |
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
Done in 870a651:
|
| 1. Start Dev Proxy with the basic configuration, specifying your API URL: | ||
|
|
||
| ```console | ||
| devproxy --config-file .devproxy/generate-typespec.json --urls-to-watch "https://api.contoso.com/*" --record |
There was a problem hiding this comment.
@copilot use JSONPlaceholder API so that folks can quickly see this in action without having to standup an API or modify anything.
There was a problem hiding this comment.
Updated in 6b89b18. Changed to use JSONPlaceholder API (https://jsonplaceholder.typicode.com/*) and added sample curl commands with the correct proxy syntax (curl -ikx http://127.0.0.1:8000).
| 1. Start Dev Proxy with the LLM configuration: | ||
|
|
||
| ```console | ||
| devproxy --config-file .devproxy/generate-typespec-llm.json --urls-to-watch "https://api.contoso.com/*" --record |
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
|
@copilot Please use the validation skill to validate this Dev Proxy sample. Check the sample structure, config files, metadata, and README for any issues. If you find problems, please fix them. |
Validated the sample against repository guidelines. All checks pass: ✅ Sample Structure
✅ Configuration Files
✅ README.md
✅ Metadata (assets/sample.json)
|
|
Closing - single plugin config, docs already cover this with the TypeSpec how-to guide. |
typespec-first-developmentundersamples/assets/sample.jsonmetadata file.github/copilot-instructions.mdwaldekmastykarz.devproxyfolderrate: 0)Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.