[PR #2773] [CLOSED] Add FastAPI example main.py witha simple GET endpoint #2086

Closed
opened 2025-11-06 13:29:11 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vinta/awesome-python/pull/2773
Author: @mimionly
Created: 10/17/2025
Status: Closed

Base: masterHead: my-first-contribution


📝 Commits (1)

  • 1192176 Add FastAPI example main.py

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

main.py (+6 -0)

📄 Description

Added main.py as a simple FastAPI example demonstrating a basic GET endpoint.

The application defines a single route ("/") that returns a JSON message:
{
"message": "Hello, FastAPI!"
}

This serves as a quick-start example for beginners to understand how to:

  • Initialize a FastAPI app
  • Define a GET endpoint
  • Run it locally using Uvicorn

To run this example:

  1. Install dependencies:
    pip install fastapi uvicorn

  2. Run the app:
    uvicorn main:app --reload

  3. Open in your browser:
    http://127.0.0.1:8000/


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/vinta/awesome-python/pull/2773 **Author:** [@mimionly](https://github.com/mimionly) **Created:** 10/17/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `my-first-contribution` --- ### 📝 Commits (1) - [`1192176`](https://github.com/vinta/awesome-python/commit/1192176c04e43639f66e50c300d339a2aa0f168c) Add FastAPI example main.py ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `main.py` (+6 -0) </details> ### 📄 Description Added main.py as a simple FastAPI example demonstrating a basic GET endpoint. The application defines a single route ("/") that returns a JSON message: { "message": "Hello, FastAPI!" } This serves as a quick-start example for beginners to understand how to: - Initialize a FastAPI app - Define a GET endpoint - Run it locally using Uvicorn To run this example: 1. Install dependencies: pip install fastapi uvicorn 2. Run the app: uvicorn main:app --reload 3. Open in your browser: http://127.0.0.1:8000/ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-06 13:29:11 -06:00
GiteaMirror changed title from [PR #2773] Add FastAPI example main.py witha simple GET endpoint to [PR #2773] [CLOSED] Add FastAPI example main.py witha simple GET endpoint 2026-04-15 09:56:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-python#2086