SocialHubAPI Documentation
Welcome to the SocialHubAPI documentation. This project provides a complete social API with CRUD operations for posts and social interactions including likes, comments, and shares.
Quick Start
Get up and running with SocialHubAPI:
Documentation Overview
API Reference
- Posts API - CRUD operations for posts and interactions
- Users API - User management, authentication, profiles
- Social Features - Likes, comments, shares, relationships
- Routes Overview - Complete endpoint list
Authentication
- Authentication System - Guide for JWT token usage
Configuration
JWT Authentication
The API uses JWT tokens for secure authentication. Configure your secret key:
Base URLs
- Posts API:
http://localhost:8000/careers/ - Users API:
http://localhost:8000/users/ - API Docs:
http://localhost:8000/api/docs/
Authentication
Use JWT tokens in all requests:
Examples
Register and Use the API
# 1. Register user
curl -X POST "http://localhost:8000/users/register/" \
-H "Content-Type: application/json" \
-d '{"username": "alice", "email": "alice@example.com", "password": "password123", "password_confirm": "password123"}'