-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added postman tutorial #35
base: all_tutorials
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty good start! I've left comments in the sections where I feel we could refine the tutorial, based on what I've observed and shared in my office hours with students. Overall, I think some additional clarity on an API request and its components would be important to really understanding what the buttons in Postman mean. I've also added links to some Postman documentation that we could include to guide the student for further exploration.
@@ -0,0 +1,67 @@ | |||
# Tutorial: How to Install and Use Postman |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might be able to broaden this to Understanding API Requests & Using Postman, considering that there's no existing tutorial on API requests, and no prerequisite undergrad course really talks about this.
|
||
## Introduction to Postman | ||
|
||
Postman is a popular API testing tool that allows developers to build, test, and modify APIs quickly and easily. It provides a interface to interact with APIs and simplifies API development. Postman supports making requests like GET, POST, PUT, DELETE, and more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In reference to the first comment, it would be useful to briefly outline what each of these request types mean. Also, maybe suggest 1-2 real examples for why you might define an endpoint as a specific type. (e.g. GET for accessing videos related to the one you're currently watching, POST to save a new uploaded video...)
Postman is a popular API testing tool that allows developers to build, test, and modify APIs quickly and easily. It provides a interface to interact with APIs and simplifies API development. Postman supports making requests like GET, POST, PUT, DELETE, and more. | ||
|
||
With Postman, you can: | ||
- **Send requests to APIs** to retrieve or submit data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A breakdown of the parts of any request would help students create their own later on. For example, when I was talking to a student, I needed to describe that GET typically uses params
to send arguments, but for POST you use body
. Request header description would be another example.
A quick reference to the URL representation may also help here.
|
||
With Postman, you can: | ||
- **Send requests to APIs** to retrieve or submit data. | ||
- **Test API responses** to ensure that they return the expected results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add overview of the main status codes (like 200, 400, 404, 500) and their meaning?
Mozilla documentation for reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
![Postman1](./assets/week1-installing-postman/Postman1.png) | ||
|
||
2. In the request window, choose the type of request method (GET, POST, PUT, DELETE) from the dropdown menu (default is GET). | ||
3. Enter the URL of the API you want to test in the input field (e.g., `https://localhost:8000/api/users`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a clarification that the endpoint of interest should be part of the URL?
Also, the Postman "Getting Started" guide uses this url: postman-echo.com/get
. That'll be more responsive for students doing this tutorial in isolation compared to using a localhost example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as previous image.
2. Double-click the file to start the installation. | ||
3. Follow the on-screen instructions to complete the installation. Postman will install automatically and open once the process is finished. | ||
|
||
#### For macOS: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,67 @@ | |||
# Tutorial: How to Install and Use Postman | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add a Contents section with hyperlinks to headings, like the other tutorials we have
``` | ||
![Postman3](./assets/week1-installing-postman/Postman3.png) | ||
|
||
5. Click the **Send** button (make sure your backend is running). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should move the "(make sure your backend is running)" to the start of the section. Maybe a Step 0? Or at least at the beginning of Step 2.
|
||
## Introduction to Postman | ||
|
||
Postman is a popular API testing tool that allows developers to build, test, and modify APIs quickly and easily. It provides a interface to interact with APIs and simplifies API development. Postman supports making requests like GET, POST, PUT, DELETE, and more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this paragraph, do we want to add that you can make these API requests using programming language like Python (requests
library) or Node (axios
)? IP1 includes the following:
You can send requests to the server using a tool like Postman, or by writing scripts that use axios to send requests to localhost:8000, as you did in the Async activity.
I suggest this for 2 reasons:
- If this is a broader guide about API requests + Postman, more experienced students can review the API requests topics and then switch to the language of their choice.
- It emphasizes the user-convenience that Postman provides.
More of a nit-picky suggestion, but something to consider
No description provided.