Packages
servicex_matching
0.0.1
This library is a summary of the functions that are generally required for Matching Web service development.
Current section
Files
Jump to
Current section
Files
lib/servicex_matching_web/views/application_view.ex
defmodule ServicexMatchingWeb.ApplicationView do
use ServicexMatchingWeb, :view
alias ServicexMatchingWeb.ApplicationView
def render("index.json", %{applications: applications}) do
render_many(applications, ApplicationView, "application.json")
end
def render("show.json", %{application: application}) do
render_one(application, ApplicationView, "application.json")
end
def render("application.json", %{application: application}) do
%{id: application.id,
status: application.status,
application_message: application.application_message,
answer_message: application.answer_message}
end
end