🔌 PSP API Documentation

Power System Platform - Comprehensive API for managing power system components

🚀 Quick Start Guide

🔐 Authentication

Most endpoints require JWT authentication. First register or login to get your token, then include it in the Authorization header: Bearer <token>

🌐 Base URL

All API endpoints are prefixed with /api
Main server: http://localhost:8080/api
Test server: http://localhost:8090/api

📊 Data Format

All requests and responses use JSON format. Make sure to set Content-Type: application/json for POST/PUT requests.

🔄 Pagination

List endpoints support pagination with page and limit parameters. Default page size is 20, maximum is 100.

📋 Main Endpoints Overview

POST /auth/register - Register new user
POST /auth/login - User login
GET /user/profile - Get user profile
POST /projects - Create project
GET /projects - List projects
GET /projects/{id} - Get project
PUT /projects/{id} - Update project
DELETE /projects/{id} - Delete project
GET /projects/stats - Project statistics
GET /sites - List sites
GET /inverters - List inverters
GET /modules - List modules