Skip to content

Add Root Landing Page#19

Merged
jbouder merged 6 commits intomainfrom
root-landing
Nov 6, 2025
Merged

Add Root Landing Page#19
jbouder merged 6 commits intomainfrom
root-landing

Conversation

@jbouder
Copy link
Contributor

@jbouder jbouder commented Nov 6, 2025

The current baseline API, when loaded up on http://localhost:5000, returns a basic empty JSON response, due to the route not having a defined result. This update defines a route for the root path which returns an HTML response, providing links to both Swagger and Redoc docs.

Description

  • Added root html template.
  • Updated to render template on root.

Related Issue

N/A

Motivation and Context

  • Simplify docs access from root directly

How Has This Been Tested?

  • Local Testing

Screenshots (if appropriate):

Before

image

After

Screenshot 2025-11-05 at 7 44 05 PM

Copilot AI review requested due to automatic review settings November 6, 2025 00:46
@jbouder jbouder added the documentation Improvements or additions to documentation label Nov 6, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a landing page for the root endpoint (/) that provides easy access to API documentation. Previously, accessing the root URL likely resulted in a 404 or redirection; now users are presented with a styled HTML page offering links to both Swagger UI and ReDoc documentation interfaces.

Key Changes

  • Created an HTML template with styling for the landing page
  • Added a root endpoint handler that serves the template

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
app/templates/index.html New HTML template with styling and links to Swagger and ReDoc documentation
app/main.py Added root endpoint handler to serve the landing page template

@jbouder jbouder marked this pull request as draft November 6, 2025 00:46
@jbouder
Copy link
Contributor Author

jbouder commented Nov 6, 2025

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link
Contributor

Copilot AI commented Nov 6, 2025

@jbouder I've opened a new pull request, #20, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 4 commits November 6, 2025 00:59
…e sync

Co-authored-by: jbouder <61591423+jbouder@users.noreply.github.com>
Optimize root endpoint: add template caching and error handling
@jbouder jbouder marked this pull request as ready for review November 6, 2025 15:54
@jbouder jbouder requested a review from marshyski November 6, 2025 15:54
Copy link
Member

@marshyski marshyski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jbouder jbouder merged commit ceea7a7 into main Nov 6, 2025
7 checks passed
@jbouder jbouder deleted the root-landing branch November 6, 2025 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants