API Reference
Vertex Showcase

vertex-showcase API

Endpoints for vertex-showcase operations.

Endpoints

POST /api/vertex-showcase/chat

Chat With Vertex

Chat with Google Vertex AI (Gemini Pro)

Demonstrates:

  • Vertex AI chat completion
  • Conversation context management
  • Response formatting

Request Body

{}

Responses

200: Successful Response

422: Validation Error

Examples

curl -X POST "https://api.altsportsdata.com/api/vertex-showcase/chat" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/vertex-showcase/chat/stream

Chat With Vertex Stream

Stream chat responses from Vertex AI

Demonstrates:

  • Server-sent events (SSE)
  • Streaming responses
  • Token-by-token generation

Request Body

{}

Responses

200: Successful Response

422: Validation Error

Examples

curl -X POST "https://api.altsportsdata.com/api/vertex-showcase/chat/stream" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/vertex-showcase/rag/query

Query Rag

Query the Vertex AI RAG system

Demonstrates:

  • RAG retrieval
  • Document citations
  • Contextual answers

Request Body

{}

Responses

200: Successful Response

422: Validation Error

Examples

curl -X POST "https://api.altsportsdata.com/api/vertex-showcase/rag/query" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/vertex-showcase/rag/upload

Upload Document To Rag

Upload a document to Vertex AI RAG corpus

Demonstrates:

  • Document ingestion
  • GCS storage
  • RAG indexing
  • Background processing

Request Body

{}

Responses

200: Successful Response

422: Validation Error

Examples

curl -X POST "https://api.altsportsdata.com/api/vertex-showcase/rag/upload" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/vertex-showcase/rag/documents

List Rag Documents

List all documents in the RAG system

Demonstrates:

  • Document registry
  • Upload history
  • System status

Responses

200: Successful Response

Examples

curl -X GET "https://api.altsportsdata.com/api/vertex-showcase/rag/documents" \
  -H "Content-Type: application/json"

GET /api/vertex-showcase/demo/rag-before-after

Demo Rag Before After

Demonstrate RAG before and after document upload

Shows:

  1. Query result with no documents
  2. Upload a document
  3. Query result with the new document

Responses

200: Successful Response

Examples

curl -X GET "https://api.altsportsdata.com/api/vertex-showcase/demo/rag-before-after" \
  -H "Content-Type: application/json"

GET /api/vertex-showcase/demo/capabilities

List Vertex Capabilities

List all available Vertex AI capabilities

Responses

200: Successful Response

Examples

curl -X GET "https://api.altsportsdata.com/api/vertex-showcase/demo/capabilities" \
  -H "Content-Type: application/json"

GET /api/vertex-showcase/health

Health Check

Health check endpoint

Responses

200: Successful Response

Examples

curl -X GET "https://api.altsportsdata.com/api/vertex-showcase/health" \
  -H "Content-Type: application/json"

Platform

Documentation

Community

Support

partnership@altsportsdata.comdev@altsportsleagues.ai

2025 Β© AltSportsLeagues.ai. Powered by AI-driven sports business intelligence.

πŸ€– AI-Enhancedβ€’πŸ“Š Data-Drivenβ€’βš‘ Real-Time