Documentation Index
Fetch the complete documentation index at: https://mintlify.com/GingerlyData247/SOTeam4-P2/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
The Trustworthy Model Registry provides a comprehensive REST API for managing AI/ML artifacts including models, datasets, and code repositories. The API enables you to ingest artifacts, compute trustworthiness metrics, track lineage, and perform license compatibility checks.Base URL
Production
API Documentation
Interactive API documentation is available at:API Standards
The API follows RESTful principles and is designed to be:- OpenAPI Compliant: Fully documented using OpenAPI 3.0 specification
- JSON-based: All request and response bodies use JSON format
- Type-safe: Strict schema validation using Pydantic models
- HTTP Standards: Proper use of HTTP methods, status codes, and headers
API Structure
All API endpoints are prefixed with/api and organized into the following functional areas:
Artifact Management
Core CRUD operations for models, datasets, and code artifacts:- Create:
POST /api/artifact/{artifact_type} - Retrieve:
GET /api/artifacts/{artifact_type}/{id} - Update:
PUT /api/artifacts/{artifact_type}/{id} - Delete:
DELETE /api/artifacts/{artifact_type}/{id} - List:
POST /api/artifacts
Artifact Discovery
Search and query capabilities:- By Name:
GET /api/artifact/byName/{name} - By Regex:
POST /api/artifact/byRegEx
Model Analytics
Trustworthiness metrics and analysis:- Rate Model:
GET /api/artifact/model/{id}/rate - Lineage Graph:
GET /api/artifact/model/{id}/lineage - Cost Analysis:
GET /api/artifact/{artifact_type}/{id}/cost - License Check:
POST /api/artifact/model/{id}/license-check
System Management
- Health Check:
GET /api/health - System Reset:
DELETE /api/reset - Planned Tracks:
GET /api/tracks
Supported Artifact Types
The API supports three artifact types:Response Format
Successful Responses
All successful responses return JSON with appropriate HTTP status codes:200 OK: Successful GET, PUT, DELETE operations201 Created: Successful POST operations creating new resources204 No Content: Successful OPTIONS preflight requests
Artifact Structure
Error Handling
The API uses standard HTTP status codes to indicate errors:| Status Code | Meaning | When Used |
|---|---|---|
400 | Bad Request | Invalid input, malformed JSON, type mismatch |
404 | Not Found | Artifact does not exist, no regex matches |
413 | Payload Too Large | URL exceeds maximum length (2048 chars) |
424 | Failed Dependency | Reviewedness score too low (less than 0.5) |
500 | Internal Server Error | Unexpected server errors |
502 | Bad Gateway | External service unavailable (HF, GitHub API) |
Error Response Format
Pagination
The/api/artifacts endpoint supports pagination:
- Default page size: 1000 items
- Use the
offsetquery parameter to navigate pages - Response includes
offsetheader for next page when available
CORS Support
The API includes CORS middleware configured for the production frontend:- Allowed Origin:
http://sot4-model-registry-dev.s3-website.us-east-2.amazonaws.com - Allowed Methods: GET, POST, PUT, DELETE, OPTIONS
- Allowed Headers: content-type, authorization
Rate Limiting
Currently, the API does not enforce rate limiting. However, please be mindful of:- External API dependencies (Hugging Face, GitHub) have their own rate limits
- Large artifact ingestion may take several seconds to complete
- Lineage graph computation scales with dependency depth
Metrics Computation
When creating model artifacts, the following trustworthiness metrics are automatically computed:- Net Score: Overall trustworthiness rating (0-1)
- Ramp Up Time: Ease of getting started with the model
- Bus Factor: Risk of contributor loss
- Performance Claims: Validation of performance assertions
- License: License compliance score
- Dataset and Code Score: Quality of training data and code
- Reproducibility: Ability to reproduce results
- Reviewedness: Code review coverage (must be ≥0.5 for ingestion)
- Tree Score: Dependency quality assessment
- Size Score: Platform-specific deployment feasibility
Lineage Tracking
The API automatically extracts and tracks artifact dependencies:- Nodes: Individual artifacts in the dependency graph
- Edges: Parent-child relationships between artifacts
- Cost Analysis: Aggregate cost computation across dependencies
OpenAPI Specification
The complete OpenAPI specification is available at the/docs endpoint, providing:
- Interactive API explorer
- Request/response schema definitions
- Example requests and responses
- Authentication requirements
- Detailed parameter descriptions
Next Steps
Authentication
Learn how to authenticate API requests
Artifacts API
Manage models, datasets, and code artifacts