-
-
Notifications
You must be signed in to change notification settings - Fork 78
03.1 API Documentation
sunithvs edited this page Feb 23, 2025
·
2 revisions
The API module provides the main FastAPI application endpoints and middleware for the devb.io service.
-
Basic Profile Endpoint
- Route:
/api/profile/basic/{username} - Function:
fetch_basic_profile - Purpose: Fetches basic GitHub user profile information
- Includes background task processing
- Route:
-
Projects Data Endpoint
- Route:
/api/profile/projects/{username} - Function:
fetch_projects_data - Purpose: Fetches GitHub user's projects and languages data
- Route:
-
About Data Endpoint
- Route:
/api/profile/about/{username} - Function:
fetch_about_data - Purpose: Fetches GitHub user's README content
- Route:
-
LinkedIn Profile Endpoint
- Route:
/api/profile/linkedin/{username} - Function:
fetch_linkedin_profile - Purpose: Fetches LinkedIn profile data
- Route:
- Purpose: Handles API key authentication
- Excludes certain paths:
/docs,/redoc,/openapi.json - Validates API keys against configured settings
The API implements caching mechanisms for GitHub profiles using:
-
get_cached_github_profilefunction - Background tasks for data updates
- Username validation middleware
- API Key authentication required for endpoints
- Input validation through dependency injection
- Rate limiting through middleware
-
Getting Started
-
Integrations
-
Technical Docs
-
Quick Links