1 00:00:00,470 --> 00:00:02,850 Hello again, you're in the home stretch. 2 00:00:02,850 --> 00:00:04,750 Only two more projects to go. 3 00:00:04,750 --> 00:00:06,717 In fact, the projects in this unit and 4 00:00:06,717 --> 00:00:10,224 the next run will stretch you to create a complete web application. 5 00:00:10,224 --> 00:00:14,470 With a server side API and a React front end. 6 00:00:14,470 --> 00:00:17,470 In this unit, you'll learn how to create a REST API. 7 00:00:17,470 --> 00:00:21,620 REST is a common method for one computer to communicate with another. 8 00:00:21,620 --> 00:00:26,110 A REST API is basically a server-side web application that receives and 9 00:00:26,110 --> 00:00:31,310 transmits information from and to a browser or another computer. 10 00:00:31,310 --> 00:00:35,168 A REST API doesn't send out webpages, instead, it sends out and 11 00:00:35,168 --> 00:00:39,883 receives information and processes that input to store data or perform a task. 12 00:00:39,883 --> 00:00:43,430 Like completing an online order or returning the results of a search. 13 00:00:44,510 --> 00:00:48,600 Creating a REST API is a common task and an important skill for 14 00:00:48,600 --> 00:00:50,910 a full stack developer to master. 15 00:00:50,910 --> 00:00:55,620 In this project you'll create an API to administer a school database. 16 00:00:55,620 --> 00:01:00,290 Using the API, users can interact with the database by retrieving a list of courses, 17 00:01:00,290 --> 00:01:03,190 as well as adding, updating, and deleting course information. 18 00:01:04,260 --> 00:01:08,790 In this project, which is the first of two projects, you'll create a REST API. 19 00:01:08,790 --> 00:01:11,099 Now there's not much to see with this project, 20 00:01:11,099 --> 00:01:15,800 since you're creating the backend that accepts requests and sends back responses. 21 00:01:15,800 --> 00:01:18,596 However, you'll do a lot of programming to make this work. 22 00:01:18,596 --> 00:01:22,283 To test that your API is working correctly, you'll use a handy program 23 00:01:22,283 --> 00:01:25,615 called Postman that lets you send different types of requests. 24 00:01:25,615 --> 00:01:31,550 Like a GET request, a POST request, or a PUT request. 25 00:01:32,560 --> 00:01:35,680 Then you'll be able to see how the API responds. 26 00:01:35,680 --> 00:01:39,170 We supply a collection of requests that you can load into Postman. 27 00:01:39,170 --> 00:01:42,405 To send a request, you select it from the list on the left and 28 00:01:42,405 --> 00:01:47,259 then click the Send button You can see 29 00:01:47,259 --> 00:01:51,840 that the returned information is JSON or JavaScript Object Notation. 30 00:01:51,840 --> 00:01:54,539 For example, the Get Courses route, pictured here, 31 00:01:54,539 --> 00:01:57,482 provides a complete listing of courses from the database. 32 00:02:00,962 --> 00:02:04,257 While the Get Course route returns data on just a single course. 33 00:02:07,564 --> 00:02:12,144 You'll add authentication to this app as well, and contest what happens when a user 34 00:02:12,144 --> 00:02:19,190 tries to access data without logging in, And after they've logged in. 35 00:02:21,510 --> 00:02:24,470 This is the beginning of a full stack application. 36 00:02:24,470 --> 00:02:25,100 Have fun with it.