BettingOpportunitiesResponse
Response model for betting opportunities
Properties
| Property | Type | Required | Description |
|---|---|---|---|
opportunities | array | β Yes | - |
hasMore | boolean | β Yes | - |
total | integer | β Yes | - |
Example
{
"opportunities": [],
"hasMore": false,
"total": 0
}Used In
Code Examples
TypeScript
interface BettingOpportunitiesResponse {
opportunities: any[];
hasMore: boolean;
total: number;
}
// Usage example
const data: BettingOpportunitiesResponse = {
"opportunities": [],
"hasMore": false,
"total": 0
};Python
from data_layer.schemas import BettingOpportunitiesResponse
# Create instance
data = BettingOpportunitiesResponse(
# Add your field values here
)cURL
curl -X POST "https://altsportsleagues-backend-2qcdjegnaa-uc.a.run.app/api/endpoint" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{ "opportunities": [], "hasMore": false, "total": 0 }'Validation Rules
Required Fields: opportunities, hasMore, total
Additional Information
- Type: object
- Source: Generated from Pydantic models in
data_layer/schemas/ - Auto-validated: All fields are validated by FastAPI
This documentation is auto-generated from the OpenAPI specification.