title: Get request in views.py with id
body: <p>I have a model <code>Word</code>. I need change method <code>get</code> in <code>WordView</code> class in <code>views.py</code> file so that it processes: <code>GET /words/{id}</code> request. Example response:</p>
  <pre><code>{
      &quot;id&quot;: 1,
      &quot;name&quot;: &quot;to ask out&quot;,
      &quot;translation&quot;: &quot;Пригласить на свидание&quot;,
      &quot;transcription&quot;: &quot;tuː ɑːsk aʊt&quot;,
      &quot;example&quot;: &quot;John has asked Mary out several times.&quot;,
  }
  </code></pre>
  <p>My code in get method:</p>
  <pre><code>from django.views import View
  from django.http import JsonResponse
  from models import Word
  
  class WordView(View):
  
      def get(self, request, id):     # Maybe there shouldn't be `id` argument
  
          item = Word.objects.get(id=id)
          items_data = [{
              'id': item.id,
              'word': item.word,
              'transcription': item.transcription,
              'translation': item.translation,
              'example': item.example,
          }]
  
          return JsonResponse(items_data[0])
  </code></pre>
  <p>Question 1: how I need change <code>ulrs.py</code> (for request <code>/words/{id}</code>)</p>
  <pre><code>urlpatterns = [
      path('admin/', admin.site.urls),
      path('words/{id}', WordView.as_view()),
  ]
  </code></pre>
  <p>Question 2: how I need change method <code>get</code></p>