title: Extracting specific data field from Django Rest Framework api
body: <p>I've recently complete the Django Rest Framework api tutorial and am having a difficult time understanding specifically how it's used as a backend for an application I plan to develop (this is my first venture into backend development). To put more simply, I don't understand how querying will work from the front end. Navigating through the api with either the browser or httpie makes sense, but I'm at a loss for how a frontend extracts specified data from a model.</p>
  
  <p>For example, let's say I have the following:</p>
  
  <p><strong>Models</strong></p>
  
  <pre><code>class Snippet(models.Model):
      created = models.DateTimeField(auto_now_add=True)
      title = models.CharField(max_length=100, blank=True, default='')
      code = models.TextField()
      linenos = models.BooleanField(default=False)
      language = models.CharField(choices=LANGUAGE_CHOICES, default='python', max_length=100)
      style = models.CharField(choices=STYLE_CHOICES, default='friendly', max_length=100)
      highlighted = models.TextField()
  </code></pre>
  
  <p><strong>Serializers</strong></p>
  
  <pre><code>class SnippetSerializer(serializers.HyperlinkedModelSerializer):
      class Meta:
          model = Snippet
          fields = ('id', 'title', 'code', 'linenos', 'language', 'style', 'url', 'highlight')
  </code></pre>
  
  <p><strong>Views</strong></p>
  
  <pre><code>class SnippetViewSet(viewsets.ModelViewSet):
      queryset = Snippet.objects.all()
      serializer_class = SnippetSerializer
  </code></pre>
  
  <p>If I'm a user on the other end of an application, how would I query 'language' inside of the Snippet model? How would I have access to whatever information is in 'language', and in what way would a frontend need to interact with my api to obtain this information?</p>
  
  <p>My problem isn't necessarily how to build the api, but how to interact with it. Any help is greatly appreciated.</p>
  
  <p>(Django 2.0, Python 3.5)</p>