Skip to content

Commit 3d90393

Browse files
Merge pull request #34 from LaunchCodeEducation/ch-20-rest
Ch 20 rest
2 parents 627b18c + 85851ab commit 3d90393

80 files changed

Lines changed: 1493 additions & 8 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
**/.DS_Store
22
.vscode
33
*.swp
4+
public/

content/appendices/_index.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: "Appendices"
3+
date: 2023-01-20T08:49:09-06:00
4+
draft: false
5+
weight: 100
6+
originalAuthor: <no value> # to be set by page creator
7+
originalAuthorGitHub: <no value> # to be set by page creator
8+
reviewer: # to be set by the page reviewer
9+
reviewerGitHub: # to be set by the page reviewer
10+
lastEditor: # update any time edits are made after review
11+
lastEditorGitHub: # update any time edits are made after review
12+
lastMod: # UPDATE ANY TIME CHANGES ARE MADE
13+
---
14+
15+
16+
17+
## Content Links
18+
19+
{{% children %}}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
title: "Installing Postman"
3+
date: 2023-01-20T08:49:09-06:00
4+
draft: false
5+
weight: 75
6+
originalAuthor: John Woolbright # to be set by page creator
7+
originalAuthorGitHub: jwoolbright23 # to be set by page creator
8+
reviewer: Kimberly Horan # to be set by the page reviewer
9+
reviewerGitHub: codinglikeagirl42 # to be set by the page reviewer
10+
lastEditor: # update any time edits are made after review
11+
lastEditorGitHub: # update any time edits are made after review
12+
lastMod: 03/08/23 # UPDATE ANY TIME CHANGES ARE MADE
13+
---
14+
15+
When exploring and testing a web API, it is invaluable to have an interactive environment that allows you to fine-tune requests. For example, you may need to configure the HTTP method, headers, or body of the request -- all of which the browser does not allow you to do. Instead of testing in a browser, we can use tools made specifically for interacting with APIs. One of the most popular API tools in the industry is **Postman**. Postman is a cross-platform tool that puts you in full control of configuring and executing API requests.
16+
17+
Installing Postman is easy thanks to its cross-platform nature. You can download the installer on [their downloads page](https://www.postman.com/downloads/).
18+
19+
## Mac Users
20+
21+
1. Select the version that matches the type of chip your Mac has. If you are unsure if you have an Intel chip or the Apple chip, click on the apple in the upper left corner of your screen. Select **About This Mac**. Under *Processor* on the **Overview** tab, you will see the chip manufaturer.
22+
23+
![Postman installation page with two Mac options displayed](pictures/download-installer-mac.png?classes=border)
24+
25+
2. After installation, you can open the app. Postman will first prompt you to make an account, but if you are uncomfortable doing so, at the bottom of the screen is the option to sign up for an account later.
26+
27+
The main view of Postman is the launchpad view.
28+
29+
![Postman launchpad view for Mac, contains overview of initial actions a user can make with the software](pictures/launchpad-view-mac.png?classes=border)
30+
31+
You are ready to go!
32+
33+
## Windows Users
34+
35+
1. Select the **Windows x64** installer download then run the installer:
36+
37+
![Close up of webpage to install Postman, user selecting Windows x64 option](pictures/download-installer.png?classes=border)
38+
39+
Windows user should select the *Windows 64-bit* download option
40+
41+
2. After installation, if Postman does not open automatically, locate the download and open it manually. Making an account can be useful, but if you do not want to create one, select the link in grey at the bottom of the splash screen that reads: "Skip signing in and take me straight to the to the app":
42+
43+
![Postman splash screen for a new account](pictures/account.png?classes=border)
44+
45+
{{% notice blue "Note" "rocket" %}}
46+
**Windows Users**: Once installed, you can right-click the Postman icon and pin it to your taskbar for easy access in the future:
47+
48+
![User pins the Postman application to their taskbar on Windows](pictures/pin-taskbar.png?classes=border)
49+
50+
Pinning the Postman application to your Windows taskbar could make your life easier
51+
{{% /notice %}}
52+
53+
3. You can leave the launchpad view open for now. We will explore Postman after setting up our API server.
54+
55+
![Postman launchpad view, contains overview of initial actions a user can make with the software](pictures/launchpad-view.png?classes=border)
56+
57+
Now that Postman is installed, there are a lot of features of the software to explore
55.9 KB
Loading
391 KB
Loading
148 KB
Loading
422 KB
Loading
104 KB
Loading
23.5 KB
Loading

content/assignments/techjobs-mvc/getting-started/_index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,14 @@ the link text.
163163

164164
The most interesting part of this template is how we generate the links:
165165

166-
```html {linenos=table}
167-
<td th:each="category : ${tableChoices}">
168-
<ul>
169-
<li th:each="item : ${category.value}">
170-
<a th:href="@{/list/jobs(column=${category.key},value=${item})}" th:text="${item}"></a>
171-
</li>
172-
</ul>
173-
</td>
166+
```html {linenos=true}
167+
<td th:each="category : ${tableChoices}">
168+
<ul>
169+
<li th:each="item : ${category.value}">
170+
<a th:href="@{/list/jobs(column=${category.key},value=${item})}" th:text="${item}"></a>
171+
</li>
172+
</ul>
173+
</td>
174174
```
175175

176176
1. `tableChoices` is a HashMap from `JobData`, and it contains the names of

0 commit comments

Comments
 (0)