This document summarizes all the API documentation and testing resources created for the Nyay Setu project.
The Nyay Setu project now includes comprehensive API documentation covering 100+ endpoints across multiple microservices. All documentation is organized to help developers quickly understand, test, and integrate with the APIs.
Purpose: Fast onboarding guide (5-10 minutes)
- Quick setup instructions
- Basic examples for each service
- Common tasks and workflows
- Troubleshooting tips
Best for: New developers getting started
Purpose: Complete API specification in OpenAPI 3.0 format
- All endpoints documented with request/response schemas
- Parameter documentation
- Security definitions
- Server configuration
Best for:
- Swagger UI visualization
- Code generation
- API client libraries
- Integration with IDE tools
Purpose: Comprehensive guide for testing APIs
- Postman setup with collection import
- cURL examples for command-line testing
- Code examples in Python and JavaScript
- Common workflows with complete examples
- Troubleshooting section
- Best practices
Best for: Developers learning to test APIs
Purpose: Detailed documentation of all endpoints
- 100+ endpoints organized by service
- Each endpoint includes:
- HTTP method and path
- Authentication requirements
- Request/response schemas
- Error codes
- Example usage
Best for: Looking up specific endpoints
Purpose: Quick lookup table
- Endpoints organized by user role
- Service architecture overview
- Common issues and solutions
- Integration tips
Best for: Quick answers while coding
Purpose: Step-by-step checklist for integrating APIs
- Pre-integration setup
- Integration patterns
- Testing scenarios
- Code review checklist
- Tools and resources
Best for: Planning API integration work
Purpose: Ready-to-use Postman collection
- All endpoints pre-configured
- Authentication flow automation
- Environment variables
- Test scripts for automation
- Examples and responses
Best for: Interactive API exploration and testing
| Goal | Document | Link |
|---|---|---|
| Get started in 5 minutes | API Quick Start | API_QUICKSTART.md |
| Test APIs with Postman | API Testing Guide | API_TESTING_GUIDE.md |
| Find a specific endpoint | Comprehensive Endpoints | API_ENDPOINTS_COMPREHENSIVE.md |
| Use the API in my code | Testing Guide (Code Examples) | API_TESTING_GUIDE.md |
| Understand API architecture | Quick Reference | API_QUICK_REFERENCE.md |
| Plan feature integration | Integration Checklist | API_INTEGRATION_CHECKLIST.md |
| View API spec in Swagger | OpenAPI Spec | openapi.yaml |
| Test APIs interactively | Postman Collection | Nyay_Setu_API_Collection.postman_collection.json |
- Start with API_QUICKSTART.md (5 min)
- Import Postman collection (2 min)
- Follow examples in collection (10 min)
- Reference API_ENDPOINTS_COMPREHENSIVE.md as needed
- Read API_INTEGRATION_CHECKLIST.md (planning)
- Study code examples in API_TESTING_GUIDE.md (15 min)
- Use API_QUICK_REFERENCE.md for quick lookups
- Reference API_ENDPOINTS_COMPREHENSIVE.md for details
- Watch Postman tutorial in API_TESTING_GUIDE.md
- Import collection from Nyay_Setu_API_Collection.postman_collection.json
- Run tests and check responses
- Review error scenarios in API_TESTING_GUIDE.md
- Review architecture in API_QUICK_REFERENCE.md
- Study OpenAPI spec: openapi.yaml
- Reference endpoint details in API_ENDPOINTS_COMPREHENSIVE.md
- Check implementation patterns in API_TESTING_GUIDE.md
| Service | Port | Purpose | Endpoints |
|---|---|---|---|
| Backend | 8080 | Core business logic | Cases, Documents, Evidence, Hearings, Orders |
| LawGPT | 8000 | Legal document generation | Affidavits, RTI, Complaints, Notices |
| NLP Orchestrator | 8001 | Advanced legal reasoning | Analysis, Forensics, Modi OCR |
| Signaling Server | 3001 | Real-time communication | WebSocket, Video calls |
- β OpenAPI/Swagger specification (machine-readable)
- β Quick start guide (5-minute onboarding)
- β Comprehensive endpoint documentation (detailed reference)
- β Quick reference (role-based lookup)
- β Testing guide (Postman, cURL, Python, JavaScript)
- β Integration checklist (planning tool)
- β Postman collection (interactive testing)
- β Code examples (multiple languages)
- β Architecture documentation (system design)
- β Troubleshooting guide (common issues)
- JWT token flow documented
- Token refresh mechanism
- Role-based access control
- Security best practices
- Python - Complete client class with methods
- JavaScript/Node.js - Async/await patterns
- cURL - Command-line examples
- Postman - Interactive requests with automation
- Postman Collection - Pre-configured endpoints
- cURL Examples - Terminal-based testing
- Python Client - Full-featured API client
- JavaScript Client - Browser and Node.js compatible
- HTTP status codes documented
- Error response formats
- Troubleshooting scenarios
- Recovery strategies
- Pagination patterns
- Caching strategies
- Timeout recommendations
- Connection pooling
# View in Swagger Editor
Visit https://editor.swagger.io
Upload openapi.yaml file# Import into Postman
1. Open Postman
2. Click "Import"
3. Select Nyay_Setu_API_Collection.postman_collection.json
4. Click "Login" request and send
5. All other requests ready to use# Follow examples for your preferred tool
- Postman section for GUI testing
- cURL section for terminal testing
- Python/JavaScript sections for code integrationFollow the checklist:
1. Pre-Integration phase
2. During Development phase
3. Testing Scenarios
4. Code Review
5. Documentation updates
- API_QUICKSTART.md - Start here
- Postman collection import
- Follow "Common Tasks" examples
- Try basic CRUD operations
- Review API_QUICK_REFERENCE.md
- Study request/response schemas
- Implement authentication flow
- Build simple integration
- Study API_ENDPOINTS_COMPREHENSIVE.md deeply
- Review openapi.yaml structure
- Implement error handling
- Optimize performance
- README.md - Documentation section updated with new resources
- docs/setup.md - Link to API documentation
- CONTRIBUTING.md - Reference to API testing guide
- Main project README β Documentation section
- Setup guides
- Contributing guidelines
- JWT authentication
- Role-based access control
- Request/response validation
- Error handling
- Pagination support
- Filtering and sorting
- Caching patterns
- Connection pooling
- Multiple testing methods
- Code examples in multiple languages
- Interactive Postman collection
- Comprehensive error messages
- Server-Sent Events (SSE) streaming
- WebSocket support
- Progress updates
- Live analysis
- Check API_TESTING_GUIDE.md
- Review API_QUICK_REFERENCE.md
- Check error codes in openapi.yaml
- Update documentation when adding endpoints
- Keep openapi.yaml in sync
- Update Postman collection with new endpoints
- Test all examples in guides
- Report documentation issues on GitHub
- Suggest improvements for examples
- Request clarifications
- Report broken links
- Immediate: Read API_QUICKSTART.md
- Short-term: Import Postman collection and test endpoints
- Medium-term: Integrate APIs into your application
- Long-term: Contribute improvements and feedback
- β API_QUICKSTART.md
- β openapi.yaml
- β API_TESTING_GUIDE.md
- β API_ENDPOINTS_COMPREHENSIVE.md
- β API_QUICK_REFERENCE.md
- β API_INTEGRATION_CHECKLIST.md
- β Nyay_Setu_API_Collection.postman_collection.json
- β README.md - Updated
Created: June 2, 2026
Status: Complete
Version: 1.0
All documentation is ready for contributors to review, test, and integrate APIs! π