title: Failing to fetch data from Swagger API doc
body: <p>I just started working with swagger/openapi last night and I am trying to document API for a demo bookstore app but I am not able to fetch data from the api on swagger-ui.</p>
  
  <p>Here's a link to the api doc <a href="http://ztp-bookstore.herokuapp.com/api/documentation" rel="nofollow noreferrer">bookstore api doc</a></p>
  
  <p>I have added annotations to the BookController like this</p>
  
  <pre><code>/**
   *  @OA\Schema(
   *      schema="Book",
   *      @OA\Property(property="title", type="string"),
   *      @OA\Property(property="author", type="string"),
   *      @OA\Property(property="description", type="string")
   *  )
   */
  /**
   *  @OA\Schema(
   *      schema="NewBook",
   *      required={"title", "author", "description"}
   *  )
   */
  
  class BookController extends Controller
  {
      /**
       * @OA\Get(
       *     path="/books",
       *     description="Returns a books list from the app",
       *     operationId="getBooksList",
       *     summary="Gets a complete list of all books available on the app with their ratings",
       *     @OA\Response(
       *         response=200,
       *         description="book response",
       *         @OA\JsonContent(
       *             type="array",
       *             @OA\Items(ref="#/components/schemas/Book")
       *         )
       *     ),
       *     @OA\Response(
       *         response="default",
       *         description="unexpected error",
       *     )
       * )
       */
      /**
       * Display a listing of the books.
       *
       * @return \Illuminate\Http\Response
       */
      public function index()
      {
          return BookResource::collection(Book::with('ratings')-&gt;get());
      }
  }
  </code></pre>
  
  <p>Where am I going wrong and how can I fix it?</p>