Nikode API Documentation
Complete guide to the Nikode API with interactive testing
🚀 Quick Start
The Nikode API provides endpoints for:
- Characters: Manage anime character data with power levels and abilities
- Users: User management with role-based permissions
- Comments: Comment system for characters
- Search: Global search across all entities
🔐 Access
All API endpoints are publicly accessible:
# Example request
curl https://api.example.com/characters👥 User Roles
- User: Basic access to read data
- Moderator: Can create and update characters, manage comments
- Admin: Full access to all endpoints, user management
📚 API Reference
Characters API
Manage anime characters with power levels, abilities, and stats
Users API
User management with role-based permissions and profiles
Comments API
Comment system for characters with moderation features
Search API
Global search across characters, users, and comments
Access Control
Public API access and role-based permissions
Interactive Testing
Test all API endpoints with our interactive playground
🛠️ Getting Started
- Choose your endpoint: Browse the documentation for the endpoint you need
- Test with our playground: Use the interactive testing tools to try endpoints
- Integrate: Use the provided examples to integrate with your application
📊 Response Format
All API responses follow a consistent format:
{
"success": true,
"message": "Operation completed successfully",
"data": {
// Response data here
},
"pagination": {
"page": 1,
"limit": 10,
"total": 100,
"totalPages": 10,
"hasNext": true,
"hasPrev": false
}
}❌ Error Handling
Errors follow a consistent format:
{
"success": false,
"error": "ERROR_CODE",
"message": "Human readable error message",
"statusCode": 400
}Common error codes:
FORBIDDEN(403): Insufficient permissionsNOT_FOUND(404): Resource not foundVALIDATION_ERROR(400): Invalid request dataCONFLICT(409): Resource already existsINTERNAL_ERROR(500): Server error
🔗 Base URL
https://api.nikode.ir🆘 Support
Need help? Check out our: