From 6c886b12914e73a6102a64021d797d41e200edd0 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 18 Feb 2024 15:59:26 +0100 Subject: [PATCH] docs: Update output in tutorials to latest version --- docs/tutorials/tut0.rst | 14 +++++++++----- docs/tutorials/tut1.rst | 8 ++++---- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/docs/tutorials/tut0.rst b/docs/tutorials/tut0.rst index c2fa5f33a..0a26eb920 100644 --- a/docs/tutorials/tut0.rst +++ b/docs/tutorials/tut0.rst @@ -122,7 +122,7 @@ You should see the psql command prompt: :: - psql (9.6.3) + psql (16.2) Type "help" for help. postgres=# @@ -196,13 +196,17 @@ Now run the server: # Running postgrest binary ./postgrest tutorial.conf -You should see +You should see something similar to: .. code-block:: text - Listening on port 3000 + Starting PostgREST 12.0.2... Attempting to connect to the database... Connection successful + Listening on port 3000 + Config reloaded + Listening for notifications on the pgrst channel + Schema cache loaded It's now ready to serve web requests. There are many nice graphical API exploration tools you can use, but for this tutorial we'll use :code:`curl` because it's likely to be installed on your system already. Open a new terminal (leaving the one open that PostgREST is running inside). Try doing an HTTP request for the todos. @@ -242,9 +246,9 @@ Response is 401 Unauthorized: .. code-block:: json { - "hint": null, - "details": null, "code": "42501", + "details": null, + "hint": null, "message": "permission denied for table todos" } diff --git a/docs/tutorials/tut1.rst b/docs/tutorials/tut1.rst index 979e75d98..8b1c0382e 100644 --- a/docs/tutorials/tut1.rst +++ b/docs/tutorials/tut1.rst @@ -175,9 +175,9 @@ After expiration, the API returns HTTP 401 Unauthorized: .. code-block:: json { - "hint": null, - "details": null, "code": "PGRST301", + "details": null, + "hint": null, "message": "JWT expired" } @@ -255,8 +255,8 @@ The server responds with 403 Forbidden: .. code-block:: json { - "hint": "Nope, we are on to you", - "details": null, "code": "42501", + "details": null, + "hint": "Nope, we are on to you", "message": "insufficient_privilege" }