mirror of
https://github.com/dyzulk/trustlab-docs.git
synced 2026-01-26 05:25:38 +07:00
feat: implement hybrid landing page and developer api section
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
{
|
||||
"index": {
|
||||
"title": "Home",
|
||||
"type": "page",
|
||||
"display": "hidden"
|
||||
},
|
||||
"guide": {
|
||||
"title": "Documentation",
|
||||
"title": "User Guide",
|
||||
"type": "page"
|
||||
},
|
||||
"developer": {
|
||||
"title": "Developer API",
|
||||
"type": "page"
|
||||
}
|
||||
}
|
||||
4
pages/developer/_meta.json
Normal file
4
pages/developer/_meta.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"index": "Overview",
|
||||
"endpoints": "Endpoints"
|
||||
}
|
||||
16
pages/developer/endpoints.mdx
Normal file
16
pages/developer/endpoints.mdx
Normal file
@@ -0,0 +1,16 @@
|
||||
# Endpoints
|
||||
|
||||
## Certificates
|
||||
|
||||
### List Certificates
|
||||
`GET /certificates`
|
||||
|
||||
### Request Certificate
|
||||
`POST /certificates`
|
||||
|
||||
```json
|
||||
{
|
||||
"csr": "-----BEGIN CERTIFICATE REQUEST-----...",
|
||||
"validity_days": 365
|
||||
}
|
||||
```
|
||||
18
pages/developer/index.mdx
Normal file
18
pages/developer/index.mdx
Normal file
@@ -0,0 +1,18 @@
|
||||
# Developer API
|
||||
|
||||
Welcome to the TrustLab API documentation.
|
||||
You can use our REST API to automate certificate issuance, revocation, and retrieval for your internal services.
|
||||
|
||||
## Base URL
|
||||
|
||||
```http
|
||||
https://trustlab.dyzulk.com/api/v1
|
||||
```
|
||||
|
||||
## Authentication
|
||||
|
||||
All API requests must include your API Key in the `Authorization` header.
|
||||
|
||||
```bash
|
||||
Authorization: Bearer <YOUR_API_KEY>
|
||||
```
|
||||
@@ -21,7 +21,7 @@ The fastest way to log in. Click **Continue with Google** or **Continue with Git
|
||||
|
||||
<Callout type="info" emoji={<Info className="w-5 h-5" />}>
|
||||
**SSO Behavior:**
|
||||
* **Existing Users:** You can only Log In via SSO if your social email address is already registered/linked to your account.
|
||||
* **Existing Users:** You can only Log In via SSO if your email address is already registered.
|
||||
* **New Users:** You can **Register** a new account instantly by clicking the Social Login buttons on the *Sign In* or *Register* page.
|
||||
</Callout>
|
||||
|
||||
@@ -63,7 +63,7 @@ New users can create an account to start managing certificates.
|
||||
<Steps>
|
||||
### Option A: Social Registration (Instant)
|
||||
1. Click **Continue with Google** or **Continue with GitHub**.
|
||||
2. **Set Password:** For security, you will be asked to create a password for your account.
|
||||
2. **Set Password:** First, ensure you have [**Installed the Root CA**](/guide/getting-started/install-root-ca) on your device.count.
|
||||
|
||||

|
||||
|
||||
|
||||
3
pages/index.mdx
Normal file
3
pages/index.mdx
Normal file
@@ -0,0 +1,3 @@
|
||||
import { LandingPage } from '../components/LandingPage'
|
||||
|
||||
<LandingPage />
|
||||
Reference in New Issue
Block a user