Skip to content

Latest commit

 

History

History

README.md

DIDentity Documentation

This directory contains comprehensive documentation for the DIDentity decentralized identity platform.

📚 Documentation Overview

API Documentation

Developer Resources

🚀 Quick Start

1. API Reference

Start with the API Reference Guide for:

  • Complete endpoint documentation
  • Request/response examples
  • Authentication requirements
  • Error handling

2. Integration Examples

See the API Integration Guide for:

  • Multi-language code examples
  • Complete workflow implementations
  • Error handling patterns
  • Performance optimization

3. OpenAPI Specification

Use the API Specification for:

  • SDK generation
  • API testing tools
  • Documentation generators
  • Contract testing

📖 Documentation Structure

API Services Coverage

Service Port Documentation Coverage
Auth Service 8004 ✅ Complete - Registration, login, token management
DID Service 8001 ✅ Complete - DID creation, resolution, all methods
Credential Service 8002 ✅ Complete - Credential issuance, multiple types
Verification Service 8003 ✅ Complete - Credential verification, validation

Key Features Documented

  • Authentication Flow - JWT token management and refresh
  • DID Methods - Support for key, web, ethr, sov, ion methods
  • Credential Types - Education, identity, professional credentials
  • Error Handling - Comprehensive error scenarios and responses
  • Rate Limiting - Service limits and best practices
  • SDK Generation - Multi-language client generation

🛠️ Using the Documentation

For Developers

  1. Quick Integration: Start with the curl examples in the API Reference
  2. Language-Specific: Check the Integration Guide for your language
  3. SDK Generation: Use the OpenAPI spec with code generators

For Testing

# Test the complete workflow
curl -X POST http://localhost:8004/signup \
  -H "Content-Type: application/json" \
  -d '{"username": "test", "email": "[email protected]", "password": "password123"}'

For SDK Generation

# Generate TypeScript SDK
openapi-generator-cli generate \
  -i docs/api-documentation.yaml \
  -g typescript-axios \
  -o ./generated-sdk

🔗 Related Resources

📝 Contributing to Documentation

When updating the API documentation:

  1. Update the OpenAPI specification first
  2. Reflect changes in the Reference Guide
  3. Add examples to the Integration Guide
  4. Update this README if new files are added

🔍 Finding What You Need

I want to... Go to...
Understand all endpoints API Reference
See code examples Integration Guide
Generate an SDK OpenAPI Spec
Set up development Developer Guide
Test the API Integration Guide - Testing Section

Note: This documentation is automatically tested against the live services. All examples and code snippets are verified to work with the current implementation.