defmodule MicoseBackend.BookView do
  use MicoseBackend.Web, :view

  def render("index.json", %{books: books}) do
    %{data: render_many(books, MicoseBackend.BookView, "book.json")}
  end

  def render("show.json", %{book: book}) do
    %{data: render_one(book, MicoseBackend.BookView, "book.json")}
  end

  def render("book.json", %{book: book}) do
    %{id: book.id,
      title: book.title,
      subtitle: book.title,
      owner: book.owner,
      borrower: book.borrower,
      creationDate: book.inserted_at,
      updateDate: book.updated_at}
  end
end

defmodule MicoseBackend.BookView do
  use MicoseBackend.Web, :view

  def render("index.json", %{books: books}) do
    %{data: render_many(books, MicoseBackend.BookView, "book.json")}
  end

  def render("show.json", %{book: book}) do
    %{data: render_one(book, MicoseBackend.BookView, "book.json")}
  end

  def render("book.json", %{book: book}) do
    %{id: book.id,
      title: book.title,
      subtitle: book.subtitle,
      owner: book.owner,
      borrower: book.borrower,
      creationDate: book.inserted_at,
      updateDate: book.updated_at}
  end
end

Fix subtitle in Json API.
Fix subtitle in Json API.

manchaques/micose-backend,manchaques/micose-backend