Next let's test our view set in the browser load up the terminal and connect
to our vagrant server by running vagrant up and then once the vagrant server is
running type vagrant SSH to connect to it
once you're connected type cd forward slash
vagrant to switch to the vagrant directory and then let's activate our virtual environment
by typing source tilde forward slash env forward slash bin slash activate
Then let's start the Django
development server by running Python manage dot py run server 0.0.0.0 : 8000
Once the server is running we can head over to our browser and then navigate to
127.0.0.1 : 8000 which will take us to the route of our Django project and
then we can type forward slash API to take us to the route of our API you may
notice that this page looks slightly different from previously when we
previously tested our API view and that's because the router has a cool
function where it will add this browsable API for all the other items
registered to our router unfortunately it doesn't include any API
views or any URLs that we've registered directly to the URLs pattern it only
includes things we register via our router and this is just a limitation of
this feature in the Django rest framework we can see here that we have
our hello view set that we registered and if we click it then it will return
the response that we defined in our view set in the views dot py which is a hello
message and a list of all of the features or some features of view sets
in the Django rest framework so when we access this URL we do a HTTP GET to the
base of the registered view which will take us to this list function
that will execute this code and return this response so we can see that our
hello view set is working correctly in our project