title: How to get data from external API to Django Rest Framework
body: <p>I am creating a DRF project (only API's), where logged in user can specify how many people's randomly generated credentials he wants to receive.</p>
  <p>Here's my problem:
  I want to get these credentials from an external API (<a href="https://randomuser.me/api" rel="nofollow noreferrer">https://randomuser.me/api</a>).
  This website generates random users data in quantity specified in the url's &quot;results&quot; parameter.
  Ex. <a href="https://randomuser.me/api/?results=40" rel="nofollow noreferrer">https://randomuser.me/api/?results=40</a></p>
  <p>My question is:</p>
  <p>How can I even get this data? I know JavaScript fetch() method might be useful but I don't actually know how to connect it with Django Rest Framework, and then manipulate it.
  I want to show the data to the user after he sends the POST request (only specifying the number of users to be generated) and also save the results in the database, so he can access them later on (through GET request).</p>
  <p>If you have any ideas or tips I would be very grateful.</p>
  <p>Thank you!</p>