Introduction

Welcome to the comprehensive documentation for the Blog API! This is a production-ready RESTful API designed for managing blog posts, users, comments, and engagement features.

πŸš€ Getting Started

Live API: https://blog-api-dc2g.onrender.com/api/v1

New to the API? Start here:

  1. Quick Start Guide - Get up and running in minutes

  2. Authentication - Understand the security model

  3. API Reference - Complete endpoint documentation

πŸ“‹ API Overview

  • Version: 1.0.0

  • Authentication: JWT Bearer tokens with refresh token support

  • Authorization: Role-based access control (admin/user)

  • Rate Limiting: 60 requests per minute per IP address

  • Content Format: JSON with multipart/form-data for file uploads

  • Security: HTTPS, HTTP-only cookies, CORS enabled

πŸ”§ Core Features

πŸ” Authentication & Users

  • User registration and login

  • JWT access tokens with automatic refresh

  • Role-based permissions (admin/user)

  • User profile management

  • Social media links support

πŸ“ Blog Management

  • Rich HTML content support

  • Image banner uploads (Cloudinary integration)

  • Draft and published status

  • SEO-friendly URL slugs

  • View tracking and analytics

πŸ’¬ Engagement Features

  • Comment system with moderation

  • Like/unlike functionality

  • Real-time engagement metrics

  • User interaction tracking

πŸ›‘οΈ Security & Performance

  • Rate limiting protection

  • Input validation and sanitization

  • Error handling with detailed responses

  • Optimized for production deployment

πŸ“š Documentation Structure

API Reference

Guides

🎯 Use Cases

For Developers

  • Frontend Applications: Build web or mobile blog readers

  • Content Management: Create admin dashboards for blog management

  • Integrations: Connect with existing systems and workflows

  • Learning Projects: Practice API integration and authentication

For Content Creators

  • Blog Platforms: Power your own blogging platform

  • Portfolio Sites: Showcase articles and writing

  • Community Platforms: Enable user-generated content

  • Educational Content: Manage courses and tutorials

πŸ› οΈ Technology Stack

Backend Architecture

  • Runtime: Node.js with Express.js

  • Database: MongoDB with Mongoose ODM

  • Authentication: JWT with bcrypt password hashing

  • File Storage: Cloudinary for image management

  • Validation: express-validator for input validation

  • Security: Helmet.js, CORS, rate limiting

Infrastructure

  • Hosting: Render.com deployment

  • CDN: Cloudinary for image delivery

  • Monitoring: Built-in logging and error tracking

  • Documentation: GitBook integration

🚦 API Status

Check the API health status:

Response:

πŸ“ž Support

Need help or found an issue?

  • πŸ“– Documentation: Check the relevant sections in this documentation

  • πŸ› Bug Reports: Create an issue on GitHub

  • πŸ’‘ Feature Requests: Suggest improvements via GitHub issues

  • πŸ“§ Contact: Reach out to the development team

πŸ“„ License

This project is licensed under the Apache License 2.0. See the LICENSEarrow-up-right file for details.


Ready to start building? Head over to the Quick Start Guide and create your first API integration in minutes!

Last updated