Skip to content
Snippets Groups Projects
Commit c560cc84 authored by Fynn Becker's avatar Fynn Becker :crab:
Browse files

Update README with better example usage

parent ceebea0d
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,11 @@ A very basic POSTGREST client and utils ...@@ -10,7 +10,11 @@ A very basic POSTGREST client and utils
```python ```python
from postgrestutils.client import pgrest_client from postgrestutils.client import pgrest_client
pgrest_client.get("kerbals?select=id,forename")
payload = {
"select": "id,forename"
}
pgrest_client.get("kerbals", params=payload)
``` ```
##### Other projects ##### Other projects
...@@ -23,7 +27,10 @@ settings.JWT = "" ...@@ -23,7 +27,10 @@ settings.JWT = ""
from postgrestutils.client import pgrest_client from postgrestutils.client import pgrest_client
res = pgrest_client.get("kerbals?select=id,forename") payload = {
"select": "id,forename"
}
res = pgrest_client.get("kerbals", params=payload)
``` ```
#### Django helpers #### Django helpers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment