Skip to content

Endoville Backend API Documentation

Welcome to the Endoville Backend API Documentation.

Overview

This API provides user management, authentication, account activation, and blog content.

Getting Started

Base URLs

  • Users: https://api.endovillehealth.com/api/users/
  • Blogs: https://api.endovillehealth.com/api/blogs/
  • Products: https://api.endovillehealth.com/api/products/
  • Orders: https://api.endovillehealth.com/api/orders/

Authentication

Most endpoints require JWT authentication. You'll receive access and refresh tokens after successful login.

API Endpoints

Response Format

All responses are in JSON format.

Success Response

{
  "message": "Operation successful",
  "data": { ... }
}

Error Response

{
  "field_name": ["Error message"],
  "non_field_errors": ["General error message"]
}

Status Codes

  • 200 OK - Request successful
  • 201 Created - Resource created successfully
  • 400 Bad Request - Invalid request data
  • 401 Unauthorized - Authentication required
  • 404 Not Found - Resource not found
  • 500 Internal Server Error - Server error