title: Django REST API without using Database
body: <p>I have an existing Django application. I need to include a functionality in it which doesn't involve DB.
  I have written the operation to be performed in <em>views.py</em>  </p>
  
  <pre><code> class VamComponent(View):
      def getSectionADetails(self,request):
       .......
      return HttpResponse()
  </code></pre>
  
  <p>In <em>urls.py</em> I have included this line in urlpatterens:</p>
  
  <pre><code>url(r'^vamcomponent$', VamComponent.as_view())
  </code></pre>
  
  <p>I am able to access the details from this url  <em><a href="http://localhost:8000/vamcomponent/" rel="nofollow noreferrer">http://localhost:8000/vamcomponent/</a></em> .  </p>
  
  <p>I need to have my endpoints with some value for section in the url like <em><a href="http://localhost:8000/vamcomponent/SectionA" rel="nofollow noreferrer">http://localhost:8000/vamcomponent/SectionA</a></em> and <em><a href="http://localhost:8000/vamcomponent/SectionB" rel="nofollow noreferrer">http://localhost:8000/vamcomponent/SectionB</a></em>.</p>
  
  <p>In <em>views.py</em> if I modify the class to have 2 functions it,based on the value of section in the request it should call the respective method</p>
  
  <pre><code> class VamComponent(View):
      def getSectionADetails(self,request):
       .......
      return HttpResponse()
      def getSectionBDetails(self,request):
       .......
      return HttpResponse()
  </code></pre>
  
  <p>How to make this change in <em>urls.py</em> file so that <code>getSectionADetails()</code> is called when the request has SectionA in it else <code>getSectionBDetails()</code>?</p>