Compare commits

...

4 Commits

Author SHA1 Message Date
shamoon
7426a12cdf Bump version to 1.4.0 2025-07-15 09:38:15 -07:00
shamoon
cbf2e1a509 Merge branch 'dev' 2025-07-15 09:32:52 -07:00
shamoon
352c54ecc4 Remove inaccurate POST examples from authoring docs 2025-06-10 13:52:08 -07:00
Jayden
1147fc858f Documentation: fix beszel documentation typo (#5400) 2025-06-09 06:34:19 -07:00
3 changed files with 4 additions and 18 deletions

View File

@@ -225,20 +225,8 @@ const widgetExample = {
#### `method` #### `method`
The `method` property is a string that represents the HTTP method that should be used to make the API request. The default value is `GET`. The `method` represents the HTTP method that should be used to make the API request. The default value is `GET`. Note that `POST` requests are not allowed via the
widget API and require the use of a custom proxy.
```js
const widgetExample = {
api: "{url}/api/{endpoint}",
mappings: {
// `/api/stats`
stats: {
endpoint: "stats",
method: "POST",
},
},
};
```
#### `headers` #### `headers`
@@ -251,7 +239,6 @@ const widgetExample = {
// `/api/stats` // `/api/stats`
stats: { stats: {
endpoint: "stats", endpoint: "stats",
method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
}, },
@@ -271,7 +258,6 @@ const widgetExample = {
// `/api/graphql` // `/api/graphql`
stats: { stats: {
endpoint: "graphql", endpoint: "graphql",
method: "POST",
body: { body: {
query: ` query: `
query { query {

View File

@@ -9,7 +9,7 @@ The widget has two modes, a single system with detailed info if `systemId` is pr
The `systemID` is the `id` field on the collections page of Beszel under the PocketBase admin panel. You can also use the 'nice name' from the Beszel UI. The `systemID` is the `id` field on the collections page of Beszel under the PocketBase admin panel. You can also use the 'nice name' from the Beszel UI.
A "superuser" is currently required to access the data from tbe Beszel API. A "superuser" is currently required to access the data from the Beszel API.
Allowed fields for 'overview' mode: `["systems", "up"]` Allowed fields for 'overview' mode: `["systems", "up"]`
Allowed fields for a single system: `["name", "status", "updated", "cpu", "memory", "disk", "network"]` Allowed fields for a single system: `["name", "status", "updated", "cpu", "memory", "disk", "network"]`

View File

@@ -1,6 +1,6 @@
{ {
"name": "homepage", "name": "homepage",
"version": "1.3.2", "version": "1.4.0",
"private": true, "private": true,
"scripts": { "scripts": {
"preinstall": "npx only-allow pnpm", "preinstall": "npx only-allow pnpm",