Skip to content

Add /api/Capabilities endpoint for API discovery#66

Draft
taisprestes01 with Copilot wants to merge 2 commits into
mainfrom
copilot/add-new-functionality
Draft

Add /api/Capabilities endpoint for API discovery#66
taisprestes01 with Copilot wants to merge 2 commits into
mainfrom
copilot/add-new-functionality

Conversation

Copilot AI commented Nov 9, 2025

Copy link
Copy Markdown

Addresses "oq vc consegue fazer" (what can you do) by adding an unauthenticated endpoint that returns API capabilities.

Changes

  • Added CapabilitiesController with GET /api/Capabilities endpoint
    • Returns API metadata (name, version, description)
    • Lists all available endpoints with HTTP methods and auth requirements
    • Documents features (user management, JWT auth, game catalog, user library)
    • Includes technical stack information

Example Response

{
  "Name": "FIAP Cloud Games API",
  "Version": "1.0.0",
  "Features": ["User Management", "JWT Auth", "Game Catalog", "User Library"],
  "Endpoints": {
    "Auth": { "Login": "POST /api/Auth/login" },
    "Users": { "Create": "POST /api/Users", ... },
    "Games": { "GetAll": "GET /api/Games (auth required)", ... }
  },
  "TechnicalStack": [".NET 8", "C# 12", "EF Core", "JWT", "Swagger"]
}

Public endpoint for API discovery - no authentication required.

Original prompt

oq vc consegue fazer


💡 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.

Co-authored-by: taisprestes01 <108246691+taisprestes01@users.noreply.github.com>
Copilot AI changed the title [WIP] Add new functionality to the existing codebase Add /api/Capabilities endpoint for API discovery Nov 9, 2025
Copilot AI requested a review from taisprestes01 November 9, 2025 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants