Skip to content

Commit

Permalink
Add images, escape double quotes, fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
russgmoore committed Feb 4, 2024
1 parent 3e77e4a commit a0578e7
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 32 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/class11/module5/images/jobs-local-clear.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 43 additions & 16 deletions docs/class11/module5/lab1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,54 @@ Our API has two endpoints:
In the URL bar of the web browser, connect to the ``https://jobs.local/get-job`` API endpoint.

.. image:: images/jobs-local-get-job.png
:scale: 50%

- Press [F12] to reveal the Firefox Developer Tools
- Select 'Network' and 'Response' just like the screenshot below
- Press [F5] to create a new HTTP request
- Right-click on the 'add-job' request just like in the screenshot below
- Select "Network"

.. image:: images/jobs-local-get-job-f12.png
:scale: 50%

- Press [F5] to create a new HTTP requestor
- click and highlight the document "get-job"
- Select 'Response' just like the screenshot below

.. image:: images/jobs-local-get-job-f5.png
:scale: 50%

- Right-click on the 'get-job' request just like in the screenshot below
- Select 'Edit and Resend'

.. image:: images/job-local-get-job-edit-send.png
:scale: 50%

- On the left-hand side, in the 'New Request' section, select [Clear]

.. image:: images/jobs-local-clear.png
:scale: 50%

- Fill in the values just like the table below

+------------------------------------------------+
| New Request |
+==============+=================================+
| POST | https://jobs.local/add-job |
+--------------+---------------------------------+
| *Headers* |
+--------------+---------------------------------+
| Content-Type | application/json |
+--------------+---------------------------------+
| *Body* |
+------------------------------------------------+
| ["Professional Skateboarder"] |
+------------------------------------------------+
+---------------------------------+----------------------------+
| New Request | |
+=================================+============================+
| POST | https://jobs.local/add-job |
+---------------------------------+----------------------------+
| *Headers* | |
+---------------------------------+----------------------------+
| Content-Type | application/json |
+---------------------------------+----------------------------+
| *Body* | |
+---------------------------------+----------------------------+
| [\"Professional Skateboarder\"] | |
+---------------------------------+----------------------------+



.. image:: images/jobs-local-add-job-form.png
:scale: 50%


Click [Send]

Expand Down
32 changes: 16 additions & 16 deletions docs/class11/module6/lab1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The public key will be used to validate the JWT signature.
create-signed-jwt.sh
create-signed-jwt.sh
The output of ``create-signed-jwt-sh`` is presented in two formats:
The output of ``create-signed-jwt.sh`` is presented in two formats:

- Authorization Bearer: <base64 encoded string>. This is the value expected in an HTTP "Authorization" header.

Expand Down Expand Up @@ -127,21 +127,21 @@ In the URL bar of the web browser, connect to the ``https://jobs.local/get-job``

Copy and paste the value of the "Authorization" header just like the table and screenshots below. Replace the <base64 encoded JWT> placeholder.

+------------------------------------------------+
| New Request |
+==============+=================================+
| POST | https://jobs.local/add-job |
+--------------+---------------------------------+
| *Headers* |
+--------------+---------------------------------+
| Content-Type | application/json |
+--------------+---------------------------------+
| Authorization| Bearer <base64 encoded JWT> |
+--------------+---------------------------------+
| *Body* |
+------------------------------------------------+
| ["Professional Skateboarder"] |
+------------------------------------------------+
+---------------------------------+----------------------------+
| New Request | |
+=================================+============================+
| POST | https://jobs.local/add-job |
+---------------------------------+----------------------------+
| *Headers* | |
+---------------------------------+----------------------------+
| Content-Type | application/json |
+---------------------------------+----------------------------+
| Bearer <base64 encoded JWT> | |
+---------------------------------+----------------------------+
| *Body* | |
+---------------------------------+----------------------------+
| [\"Professional Skateboarder\"] | |
+---------------------------------+----------------------------+

With the "Authorization" header on/enabled, you can POST new jobs to the ``https:/jobs.local/add-job`` API endpoint.

Expand Down

0 comments on commit a0578e7

Please sign in to comment.