Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

savannahostrowski/devcontainer-fastapi

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

devcontainer-fastapi

  1. Create the plugin code using Copilot chat:
Write a simple TODO app using FastAPI, that lets the user add TODOs, list their TODOs, and delete TODOs.
 
Include a __main__ section which will run this app using uvicorn. The Python module where I save this code will be called main.py.
 
In addition to the normal endpoints, include a route .wellknown/ai-plugin.json which serves (as JSON) the contents of ./ai-plugin.json, located in the same directory as main.py. Exclude this route from the OpenAPI spec, and don't serve any other static content.
  1. Create ai-plugin.json (use snippet via manifest-openai -- or let Copilot generate it)

  2. Run the app (in terminal run: uvicorn main:app)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Dockerfile 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.