The last section we put together our back and route to return our full list of surveys.
I think that we're now ready to test this out and make sure that the End Point is working the way we
expect.
So we're going to test this and point in the same way that we were testing some of our other API previously.
I'm going to change back over to the browser.
I'm going to make sure I've got my re-act application up I can make sure that I'm logged in and then
I'm going to open up my draw javascript con. I'm going to go to the Network tab and then inside of the
console pop up right here and remember that you can toggle this by pressing escape.
We will make sure that we still have access to X-ers inside the console.
And yet looks like we do.
And so to test out the point all we have to do is make a network request to API slash surveys.
So we'll say accedes doget API slash service.
OK.
So in our request log we immediately see a response pop up we get a status of 200 which means that it
looks like everything went OK.
And if I inspect the response and then go to the preview tab you'll show me a list of all the different
surveys I've sent out.
So let's take a look at our latest one which was super final test.
And so we've got our body.
The date that it was sent the last time someone responded the number of no votes the number of yes votes
and the subject and the title.
So it looks like the End Point is definitely working out just fine.
OK.
So that's pretty much all we have to do from the server standpoint.
Now the server was very easy and really straightforward but doing the front end is just going to be
a little bit more work because we have to make sure that we take care of the entire redux cycle for
loading up data just like we've been doing through all throughout the course.
So we need to make connection creator do our network request.
Why are the action creator to a component put the reducer together.
You know basically the entire redux cycle just all of that stuff we have to go through to make sure
that we can get access to this list of data inside of our dashboard component.
So let's take a quick break come back in the next section and start firing up the front end of our app.
I'll see it in just a minute.