docs: Rebuild documentation as enterprise-grade TLAS platform
- Migrate from custom HTTP server to VitePress framework - Rename project to Tokenized License Approval System (TLAS) - Add comprehensive documentation for all stakeholders: - Business: Executive summary, value proposition, governance - Operations: Infrastructure, installation, monitoring, backup - Departments: User guide, workflows, verification, issuance - Developers: API reference, authentication, webhooks, SDKs - Compliance: OWASP, DPDP Act, IT Act, audit framework - Add modern theme with dark mode and full-text search - Update Dockerfile for VitePress build process Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
94
Documentation/developers/sdks.md
Normal file
94
Documentation/developers/sdks.md
Normal file
@@ -0,0 +1,94 @@
|
||||
# SDKs & Libraries
|
||||
|
||||
## JavaScript/TypeScript SDK
|
||||
|
||||
### Installation
|
||||
|
||||
```bash
|
||||
npm install @tlas/sdk
|
||||
```
|
||||
|
||||
### Usage
|
||||
|
||||
```typescript
|
||||
import { TLASClient } from '@tlas/sdk';
|
||||
|
||||
const client = new TLASClient({
|
||||
baseUrl: 'https://api.tlas.gov.in/v1',
|
||||
clientId: 'your-client-id',
|
||||
clientSecret: 'your-client-secret'
|
||||
});
|
||||
|
||||
// Submit application
|
||||
const application = await client.applications.create({
|
||||
licenseType: 'TRADE_LICENSE',
|
||||
applicantId: 'DL-12345678',
|
||||
data: { ... }
|
||||
});
|
||||
|
||||
// Check status
|
||||
const status = await client.applications.getStatus(application.id);
|
||||
|
||||
// Verify certificate
|
||||
const verification = await client.certificates.verify('GOA/TRADE/2026/00001');
|
||||
```
|
||||
|
||||
## Python SDK
|
||||
|
||||
### Installation
|
||||
|
||||
```bash
|
||||
pip install tlas-sdk
|
||||
```
|
||||
|
||||
### Usage
|
||||
|
||||
```python
|
||||
from tlas import TLASClient
|
||||
|
||||
client = TLASClient(
|
||||
base_url='https://api.tlas.gov.in/v1',
|
||||
client_id='your-client-id',
|
||||
client_secret='your-client-secret'
|
||||
)
|
||||
|
||||
# Submit application
|
||||
application = client.applications.create(
|
||||
license_type='TRADE_LICENSE',
|
||||
applicant_id='DL-12345678',
|
||||
data={...}
|
||||
)
|
||||
|
||||
# Check status
|
||||
status = client.applications.get_status(application['id'])
|
||||
|
||||
# Verify certificate
|
||||
result = client.certificates.verify('GOA/TRADE/2026/00001')
|
||||
```
|
||||
|
||||
## Java SDK
|
||||
|
||||
### Maven
|
||||
|
||||
```xml
|
||||
<dependency>
|
||||
<groupId>gov.in.tlas</groupId>
|
||||
<artifactId>tlas-sdk</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
### Usage
|
||||
|
||||
```java
|
||||
TLASClient client = new TLASClient.Builder()
|
||||
.baseUrl("https://api.tlas.gov.in/v1")
|
||||
.credentials("client-id", "client-secret")
|
||||
.build();
|
||||
|
||||
Application app = client.applications()
|
||||
.create("TRADE_LICENSE", "DL-12345678", data);
|
||||
|
||||
VerificationResult result = client.certificates()
|
||||
.verify("GOA/TRADE/2026/00001");
|
||||
```
|
||||
Reference in New Issue
Block a user