ThietKeResort Authentication API

Modern, secure, and developer-friendly authentication service for the resort design platform. Built with JWT technology and role-based access control.

RESTful API JWT Security 5 User Roles Node.js v20+

Tại sao chọn ThietKeResort API?

Được thiết kế với tốc độ, bảo mật và trải nghiệm developer tốt nhất

Hiệu Suất Cao

Xây dựng trên Fastify framework với Node.js v20+, đảm bảo tốc độ phản hồi nhanh chóng và khả năng xử lý đồng thời cao.

Bảo Mật Tối Ưu

JWT authentication với PBKDF2 hashing, CORS protection và rate limiting để đảm bảo an toàn tuyệt đối cho dữ liệu người dùng.

Quản Lý Vai Trò

5 vai trò người dùng rõ ràng: Khách hàng, Nhà thầu, Công ty, Kiến trúc sư và Quản trị viên với phân quyền chi tiết.

Developer Friendly

RESTful API design, comprehensive documentation, interactive testing tools và SDKs cho nhiều ngôn ngữ lập trình.

Production Ready

Sẵn sàng triển khai với PM2 process management, Nginx reverse proxy và comprehensive monitoring.

Đa Nền Tảng

Tương thích với web, mobile (React Native), desktop apps và các framework phổ biến như React, Vue, Angular.

API Đơn Giản & Mạnh Mẽ

Chỉ với vài dòng code, bạn có thể tích hợp hệ thống authentication hoàn chỉnh vào ứng dụng của mình. API được thiết kế theo chuẩn REST với response format nhất quán.

User Registration Example JavaScript
// Register a new user const registerUser = async () => { const response = await fetch('https://api.thietkeresort.com.vn/auth/register', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ email: 'client@thietkeresort.com.vn', password: 'SecurePass123!', fullName: 'Nguyễn Văn Khách', role: 'client' }) }); const data = await response.json(); if (response.ok) { // Store token for future requests localStorage.setItem('authToken', data.token); console.log('Registration successful:', data.user); } };
5 User Roles
8 API Endpoints
99.9% Uptime SLA
24h Token Expiry

Documentation & Resources

Tài liệu chi tiết và công cụ hỗ trợ developer

API Documentation

Tài liệu API đầy đủ với examples, request/response schemas và interactive testing.

Read Documentation

Interactive Playground

Test API endpoints trực tiếp từ browser với giao diện thân thiện và user-friendly.

Try It Live

Code Examples

Ví dụ code chi tiết cho JavaScript, Python, PHP và các ngôn ngữ phổ biến khác.

View Examples

Quick Start Guide

Hướng dẫn bắt đầu nhanh chóng, từ registration đến authentication trong 5 phút.

Get Started

Deployment Guide

Hướng dẫn triển khai production với Docker, PM2 và Nginx configuration.

Deploy Now

SDKs & Libraries

Official SDKs cho React, Vue, Python, PHP và các framework phổ biến.

Browse SDKs