You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developers/applications/define-routes.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ By default, route URLs are configured to be:
20
20
21
21
However, you can specify the path to be `/` if you wish to have your routes handling the root path of incoming URLs.
22
22
23
-
- The route below, using the default config, within the **dogs** project, with a route of **breeds** would be available at **http:/localhost:9926/dogs/breeds**.
23
+
- The route below, using the default config, within the **dogs** project, with a route of **breeds** would be available at **[http://localhost:9926/dogs/breeds](http://localhost:9926/dogs/breeds)**.
24
24
25
25
In effect, this route is just a pass-through to Harper. The same result could have been achieved by hitting the core Harper API, since it uses **hdbCore.preValidation** and **hdbCore.request**, which are defined in the "helper methods" section, below.
You can also install from private repository if you have installed SSH keys on the server. Ensure the `host` portion of the url exactly matches the `host` used when adding ssh keys to ensure proper authentication.
Note that `deploy_component` with a package uses `npm install` so the url must be a valid npm format url. The above is an example of a url using a tag in the repo to install.
Copy file name to clipboardExpand all lines: docs/developers/security/jwt-auth.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Users must initially create tokens using their Harper credentials. The following
28
28
A full cURL example can be seen here:
29
29
30
30
```bash
31
-
curl --location --request POST 'http:/localhost:9925' \
31
+
curl --location --request POST 'http://localhost:9925' \
32
32
--header 'Content-Type: application/json' \
33
33
--data-raw '{
34
34
"operation": "create_authentication_tokens",
@@ -51,7 +51,7 @@ An example expected return object is:
51
51
The `operation_token` value is used to authenticate all operations in place of our standard Basic auth. In order to pass the token you will need to create an Bearer Token Authorization Header like the following request:
52
52
53
53
```bash
54
-
curl --location --request POST 'http:/localhost:9925' \
54
+
curl --location --request POST 'http://localhost:9925' \
@@ -68,7 +68,7 @@ curl --location --request POST 'http:/localhost:9925' \
68
68
`operation_token` expires at a set interval. Once it expires it will no longer be accepted by Harper. This duration defaults to one day, and is configurable in [harperdb-config.yaml](../../deployments/configuration). To generate a new `operation_token`, the `refresh_operation_token` operation is used, passing the `refresh_token` in the Bearer Token Authorization Header. A full cURL example can be seen here:
69
69
70
70
```bash
71
-
curl --location --request POST 'http:/localhost:9925' \
71
+
curl --location --request POST 'http://localhost:9925' \
Congratulations, you now have created a secure database application backend with a table, a well-defined structure, access controls, and a functional REST endpoint with query capabilities! See the [REST documentation for more information on HTTP access](../developers/rest) and see the [Schema reference](../developers/applications/defining-schemas) for more options for defining schemas.
Copy file name to clipboardExpand all lines: docs/getting-started/install-harper.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ These defaults allow you to quickly start an instance, though you can customize
59
59
Containers created from this image store all data and Harper configuration at `/home/harperdb/hdb`. To ensure that your data persists beyond the lifecycle of a container, you should mount this directory to a directory on the container host using a Docker volume. This ensures that your database remains available and your settings are not lost when the container is stopped or removed.
60
60
61
61
:::info
62
-
Test your Harper instance is up and running by querying `curl http:/localhost:9925/health`
62
+
Test your Harper instance is up and running by querying `curl http://localhost:9925/health`
63
63
:::
64
64
65
65
### Example Deployments
@@ -123,7 +123,7 @@ If you want to inspect the logs to ensure that Harper has started correctly, use
123
123
docker logs <container_id>
124
124
```
125
125
126
-
Once verified, you can access your Harper instance by opening your web browser and navigating to http:/localhost:9925 (or the appropriate port based on your configuration).
126
+
Once verified, you can access your Harper instance by opening your web browser and navigating to [http://localhost:9925](http://localhost:9925) (or the appropriate port based on your configuration).
Copy file name to clipboardExpand all lines: docs/technical-details/reference/analytics.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Harper collects statistics for all operations, URL endpoints, and messaging topi
11
11
There are two "levels" of analytics in the Harper analytics table: the first is the immediate level of raw direct logging of real-time statistics. These analytics entries are recorded once a second (when there is activity) by each thread, and include all recorded activity in the last second, along with system resource information. The records have a primary key that is the timestamp in milliseconds since epoch. This can be queried (with `superuser` permission) using the search_by_conditions operation (this will search for 10 seconds worth of analytics) on the `hdb_raw_analytics` table:
12
12
13
13
```
14
-
POST http:/localhost:9925
14
+
POST http://localhost:9925
15
15
Content-Type: application/json
16
16
17
17
{
@@ -69,7 +69,7 @@ And a typical response looks like:
69
69
The second level of analytics recording is aggregate data. The aggregate records are recorded once a minute, and aggregate the results from all the per-second entries from all the threads, creating a summary of statistics once a minute. The ids for these milliseconds since epoch can be queried from the `hdb_analytics` table. You can query these with an operation like:
Copy file name to clipboardExpand all lines: docs/technical-details/reference/components/applications.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ Furthermore, the `package` field can be set to any valid [npm dependency value](
109
109
110
110
- For applications deployed to npm, specify the package name: `package="@harperdb/status-check"`
111
111
- For applications on GitHub, specify the URL: `package="https://github.com/HarperDB/status-check"`, or the shorthand `package=HarperDB/status-check`
112
-
- Private repositories also work if the correct SSH keys are on the server: `package="git+ssh:/[email protected]:HarperDB/secret-applications.git"`
112
+
- Private repositories also work if the correct SSH keys are on the server: `package="git+ssh://[email protected]:HarperDB/secret-applications.git"`
113
113
- Reference the [SSH Key](../../../developers/operations-api/components#add-ssh-key) operations for more information on managing SSH keys on a remote instance
114
114
- Even tarball URLs are supported: `package="https://example.com/application.tar.gz"`
115
115
@@ -164,8 +164,8 @@ Harper will generate a `package.json` like:
- The route below, within the **dogs** project, with a route of **breeds** would be available at **http:/localhost:9926/dogs/breeds**.
13
+
- The route below, within the **dogs** project, with a route of **breeds** would be available at **[http://localhost:9926/dogs/breeds](http://localhost:9926/dogs/breeds)**.
14
14
15
15
In effect, this route is just a pass-through to HarperDB. The same result could have been achieved by hitting the core HarperDB API, since it uses **hdbCore.preValidation** and **hdbCore.request**, which are defined in the "helper methods" section, below.
Copy file name to clipboardExpand all lines: versioned_docs/version-4.1/security/jwt-auth.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Users must initially create tokens using their HarperDB credentials. The followi
29
29
A full cURL example can be seen here:
30
30
31
31
```bash
32
-
curl --location --request POST 'http:/localhost:9925' \
32
+
curl --location --request POST 'http://localhost:9925' \
33
33
--header 'Content-Type: application/json' \
34
34
--data-raw '{
35
35
"operation": "create_authentication_tokens",
@@ -52,7 +52,7 @@ An example expected return object is:
52
52
The `operation_token` value is used to authenticate all operations in place of our standard Basic auth. In order to pass the token you will need to create an Bearer Token Authorization Header like the following request:
53
53
54
54
```bash
55
-
curl --location --request POST 'http:/localhost:9925' \
55
+
curl --location --request POST 'http://localhost:9925' \
@@ -69,7 +69,7 @@ curl --location --request POST 'http:/localhost:9925' \
69
69
`operation_token` expires at a set interval. Once it expires it will no longer be accepted by HarperDB. This duration defaults to one day, and is configurable in [harperdb-config.yaml](../configuration). To generate a new `operation_token`, the `refresh_operation_token` operation is used, passing the `refresh_token` in the Bearer Token Authorization Header. A full cURL example can be seen here:
70
70
71
71
```bash
72
-
curl --location --request POST 'http:/localhost:9925' \
72
+
curl --location --request POST 'http://localhost:9925' \
Copy file name to clipboardExpand all lines: versioned_docs/version-4.2/developers/applications/define-routes.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ By default, route URLs are configured to be:
20
20
21
21
However, you can specify the path to be `/` if you wish to have your routes handling the root path of incoming URLs.
22
22
23
-
- The route below, using the default config, within the **dogs** project, with a route of **breeds** would be available at **http:/localhost:9926/dogs/breeds**.
23
+
- The route below, using the default config, within the **dogs** project, with a route of **breeds** would be available at **[http://localhost:9926/dogs/breeds](http://localhost:9926/dogs/breeds)**.
24
24
25
25
In effect, this route is just a pass-through to HarperDB. The same result could have been achieved by hitting the core HarperDB API, since it uses **hdbCore.preValidation** and **hdbCore.request**, which are defined in the "helper methods" section, below.
0 commit comments