diff --git a/Module_Postman/activities/Act1_Intro_to_APIs_Endpoints/3.md b/Module_Postman/activities/Act1_Intro_to_APIs_Endpoints/3.md index 0a980fca..7f155633 100644 --- a/Module_Postman/activities/Act1_Intro_to_APIs_Endpoints/3.md +++ b/Module_Postman/activities/Act1_Intro_to_APIs_Endpoints/3.md @@ -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. \ No newline at end of file +Postman also supports authentication, an important aspect for many APIs. diff --git a/Module_Postman/activities/Act1_Intro_to_APIs_Endpoints/README.md b/Module_Postman/activities/Act1_Intro_to_APIs_Endpoints/README.md new file mode 100644 index 00000000..f284ada3 --- /dev/null +++ b/Module_Postman/activities/Act1_Intro_to_APIs_Endpoints/README.md @@ -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)