Skip to content

Commit

Permalink
fix: endpint definition
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Feb 3, 2025
1 parent b26f227 commit 3b2c886
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/content/docs/docs/public-api/endpoints.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ Query Parameters:
interface StatsQuery {
from: Date
to: Date
graph?: 'mau' | 'storage' | 'bandwidth'
}
```

Expand All @@ -225,8 +224,6 @@ interface Stats {
}
```

If `graph` parameter is provided, returns an SVG image visualization of the requested metric.

### GET /statistics/user

Retrieve aggregated statistics across all organizations the user has access to.
Expand All @@ -236,12 +233,10 @@ Query Parameters:
interface StatsQuery {
from: Date
to: Date
graph?: 'mau' | 'storage' | 'bandwidth'
}
```

Returns:
If `graph` is not provided:
```typescript
interface Stats {
date: string
Expand All @@ -251,8 +246,6 @@ interface Stats {
}[]
```

If `graph` parameter is provided, returns an SVG image visualization of the requested metric.

### GET /statistics/org/:org_id

Retrieve statistics for a specific organization.
Expand All @@ -262,12 +255,10 @@ Query Parameters:
interface StatsQuery {
from: Date
to: Date
graph?: 'mau' | 'storage' | 'bandwidth'
}
```

Returns:
If `graph` is not provided:
```typescript
interface Stats {
date: string
Expand All @@ -277,7 +268,6 @@ interface Stats {
}[]
```

If `graph` parameter is provided, returns an SVG image visualization of the requested metric.

## Channels

Expand Down

0 comments on commit 3b2c886

Please sign in to comment.