postrest 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -13
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62e2ac88e73d725684a65f9e73c0e7ee7188dba8
|
|
4
|
+
data.tar.gz: 51ae79cbbaf9acb9dc9d61a9302ede68699b9a70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30630b1cdf962a9d2b713f94fb41cd7597354402d922f09dbe0f3730d4a55c3e8c4ee0dba7c5566eb9ef00d9b73f8b6b0f7382781f2f65cfc0728df6c63b82c0
|
|
7
|
+
data.tar.gz: d91608d76c9219dcf5f63374359c68eade2695b60b164ad75f23839fa4ae032b3ec3e0d0014e22a1cb565294db4922901408adb68b54d388b4b492debe339e8f
|
data/README.md
CHANGED
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
Have a different way to interact with data from your [postgresal] database.
|
|
5
5
|
|
|
6
6
|
You can either interact with the data via your browser,
|
|
7
|
-
|
|
8
|
-
http://localhost:
|
|
9
|
-
|
|
7
|
+
|
|
8
|
+
http://localhost:4567/
|
|
9
|
+
|
|
10
10
|
or hit the rest interface directly.
|
|
11
|
-
|
|
12
|
-
http://localhost:
|
|
13
|
-
```
|
|
11
|
+
|
|
12
|
+
http://localhost:4567/:env/:tbl
|
|
14
13
|
|
|
15
14
|
# How
|
|
16
15
|
|
|
@@ -19,12 +18,8 @@ Connection strings are provided as environment variables.
|
|
|
19
18
|
|
|
20
19
|
# What
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
DB=postgres://localhost:5432/test postrest
|
|
24
|
-
```
|
|
21
|
+
$ DB=pgsql://postgrest_test_user:postgrest_test_pass@localhost:5432/postgrest_test postrest
|
|
25
22
|
|
|
26
|
-
|
|
27
|
-
http://localhost:3000/DB/test_tbl?field1=value1&field2=value2
|
|
23
|
+
http://localhost:4567/DB/test_tbl?field1=value1&field2=value2
|
|
28
24
|
or
|
|
29
|
-
http://localhost:
|
|
30
|
-
```
|
|
25
|
+
http://localhost:4567/:db/:tbl?field1=value1&field2=value2
|