title: drf_yasg documentation parameters not showing
body: <p>I am using drf_yasg to self document my API which is built using the django-framework, but none of the parameters are displaying at all for any of the endpoints. The way I've done it is to pass the parameters within the http request body in JSON format. I then read the parameters from request.data. Below is an example of one of the views where it takes 'id' as a parameter in the body of the request.</p>
  <pre><code>@api_view(['POST'])
  @permission_classes([IsAuthenticated])
  def get_availability_by_schoolid(request):
      if request.user.is_donor:
          try:
              #Get the existing slots and remove them to replace with new slots
              slots = SchoolSlot.objects.filter(school__id=request.data[&quot;id&quot;]).values('day','am','pm')
              availability = process_availability(slots)
              availabilityslotserializer = SchoolSlotSerializer(availability)
              return Response(availabilityslotserializer.data, status=status.HTTP_200_OK)
          except Exception as e:
              print(e)
              return Response(ResponseSerializer(GeneralResponse(False,&quot;Unable to locate school&quot;)).data, status=status.HTTP_400_BAD_REQUEST)
      else:
          return Response(ResponseSerializer(GeneralResponse(False,&quot;Not registered as a donor&quot;)).data, status=status.HTTP_400_BAD_REQUEST)
  </code></pre>
  <p>This will display in the swagger documentation as below:</p>
  <p><a href="https://i.stack.imgur.com/1lRyq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1lRyq.png" alt="swagger output" /></a></p>
  <p>I have been looking at the documentation and it suggests that i might need to add a decorator with manual parameters, but I can't figure out how I would do that as the examples I can find are for get query parameters or path parameters. I have added the decorator below which enables the response to document.</p>
  <pre><code>@swagger_auto_schema(method='post', responses={200: SchoolSlotSerializer,400: 'Bad Request'})
  </code></pre>
  <p>An example of the request body for this is:</p>
  <pre><code>  { &quot;id&quot;: 43 }
  </code></pre>
  <p>UPDATE:</p>
  <p>I seem to get something with the following decorator:</p>
  <pre><code>@swagger_auto_schema(method='post', request_body=openapi.Schema(
      type=openapi.TYPE_OBJECT,
      properties={
          'id': openapi.Schema(type=openapi.TYPE_INTEGER, description='Donor ID')
      }),
      responses={200: SchoolSlotSerializer,400: 'Bad Request'})
  </code></pre>
  <p>This documents the parameters. Now what I have for another endpoint is it takes the following JSON for input, how would I go about adding this?</p>
  <pre><code>  {
          &quot;availability&quot;: {
              &quot;mon&quot;: {
                  &quot;AM&quot;: true,
                  &quot;PM&quot;: false
              },
              &quot;tue&quot;: {
                  &quot;AM&quot;: false,
                  &quot;PM&quot;: false
              },
              &quot;wed&quot;: {
                  &quot;AM&quot;: false,
                  &quot;PM&quot;: false
              },
              &quot;thu&quot;: {
                  &quot;AM&quot;: true,
                  &quot;PM&quot;: true
              },
              &quot;fri&quot;: {
                  &quot;AM&quot;: false,
                  &quot;PM&quot;: false
              },
              &quot;sat&quot;: {
                  &quot;AM&quot;: false,
                  &quot;PM&quot;: false
              },
              &quot;sun&quot;: {
                  &quot;AM&quot;: true,
                  &quot;PM&quot;: false
              }
      }
      }
  </code></pre>