Skip to content

Commit caabc2e

Browse files
authored
Merge pull request appwrite#100 from geekcj12/master
docs(api.mdx): the api path is incorrect
2 parents f390e74 + a23b3b2 commit caabc2e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

content/api.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Cookie: umami.auth=eyTMjU2IiwiY...4Q0JDLUhWxnIjoiUE_A
5555

5656
Operations around Websites that Umami is tracking.
5757

58-
## `POST /api/website`
58+
## `POST /api/websites`
5959

6060
Creates a website.
6161

@@ -115,7 +115,7 @@ There are several endpoints your can call to get stats for your website. All the
115115
stats endpoints require sending a `GET` request with the `umami.auth` authentication cookie.
116116

117117

118-
## `GET /api/website/{id}/stats`
118+
## `GET /api/websites/{id}/stats`
119119

120120
Gets summarized website statistics.
121121

@@ -126,7 +126,7 @@ Gets summarized website statistics.
126126

127127
**Sample example**
128128

129-
GET (with Authorization header) from url : `https://umami.mydomain.com/api/website/1/stats?start_at=1656679719687&end_at=1656766119687`
129+
GET (with Authorization header) from url : `https://umami.mydomain.com/api/websites/1/stats?start_at=1656679719687&end_at=1656766119687`
130130

131131
```
132132
{
@@ -143,7 +143,7 @@ GET (with Authorization header) from url : `https://umami.mydomain.com/api/websi
143143
- `totaltime` : Time spent on the website
144144

145145

146-
## `GET /api/website/{id}/pageviews`
146+
## `GET /api/websites/{id}/pageviews`
147147

148148
Gets pageviews within a given time range.
149149

@@ -169,7 +169,7 @@ Gets pageviews within a given time range.
169169
}
170170
```
171171

172-
## `GET /api/website/{id}/events`
172+
## `GET /api/websites/{id}/events`
173173

174174
Gets events within a given time range.
175175

@@ -189,7 +189,7 @@ Gets events within a given time range.
189189
]
190190
```
191191

192-
## `GET /api/website/{id}/metrics`
192+
## `GET /api/websites/{id}/metrics`
193193

194194
Gets metrics for a given time range.
195195

0 commit comments

Comments
 (0)