defmodule ApiWeb.ResourceView do
  use ApiWeb, :view
  alias ApiWeb.ResourceView

  def render("index.json", %{resources: resources}) do
    %{data: render_many(resources, ResourceView, "resource.json")}
  end

  def render("resource.json", %{resource: %{ "type" => type, "identifier" => identifier }}) do
    %{type: type,
      identifier: identifier}
  end
end
defmodule ApiWeb.ResourceView do
  use ApiWeb, :view
  alias ApiWeb.ResourceView

  def render("index.json", %{resources: resources}) do
    %{data: render_many(resources, ResourceView, "resource.json")}
  end

  def render("resource.json", %{resource: %{"id" => id, "type" => type, "identifier" => identifier,
                                            "shortDescription" => shortDescription }}) do
    %{
      id: id,
      type: type,
      identifier: identifier,
      shortDescription: shortDescription
    }
  end
end
Add id & shortDescription to resource output
Add id & shortDescription to resource output

dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web