Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions Module_Postman/activities/Act1_Intro_to_APIs_Endpoints/3.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,18 @@ Postman is a collaboration platform for API development.
Makes testing APIs super simple!



Let's use Postman to test what this route `https://jsonplaceholder.typicode.com/todos/1` currently returns to the client.

On "Enter request url", copy and paste our route https://jsonplaceholder.typicode.com/todos/1 so Postman know which route to send our request to.



![Creating New Collection6](https://projectbit.s3-us-west-1.amazonaws.com/darlene/labs/Creating New Collection6.png)

Open up Postman and click on "Create a request" from the Launchpad.

On "Enter request url", copy and paste our route https://jsonplaceholder.typicode.com/todos/1 so Postman know which route to send our request to.

Click Send, and you should see the JSON data we get back through the response body as well as the **status code** (a code of 200 means a success!)



![Creating New Collection7](C:\Users\orang\Desktop\home\bitlab\Postman Activities\Creating New Collection7.png)



We just tested what the route does for a GET request!

If we wanted to test for POST, PUT, and DELETE, we would have to change the Request Type



Postman also supports authentication, an important aspect for many APIs.
Postman also supports authentication, an important aspect for many APIs.
26 changes: 26 additions & 0 deletions Module_Postman/activities/Act1_Intro_to_APIs_Endpoints/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Activity/Lab Name

Intro to API Endpoints

# Long Summary

Students will learn about APIs, HTTP methods and status codes. Then they will use Postman to interact with an API and get data from it. Also students will be knowledgeable on what an API key is and how to use an API key in Postman's Authorization tab.

# Short Summary

Utlilize postman to interact with an API.

# Criteria

1. What is an API and why is it useful to developers?
2. What are the different http methods?
3. What is the purpose of an API key?


# Difficulty

Easy

# Image

![http](https://projectbit.s3-us-west-1.amazonaws.com/darlene/labs/http.png)