i'm bad at copy-paste
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
5ae5072c2e
commit
745e1663ac
1 changed files with 6 additions and 6 deletions
|
@ -39,7 +39,7 @@ def index_operation do
|
||||||
pagination_params(),
|
pagination_params(),
|
||||||
responses: %{
|
responses: %{
|
||||||
200 =>
|
200 =>
|
||||||
Operation.response("Account", "application/json", %Schema{
|
Operation.response("Report", "application/json", %Schema{
|
||||||
title: "ArrayOfReports",
|
title: "ArrayOfReports",
|
||||||
type: :array,
|
type: :array,
|
||||||
items: report()
|
items: report()
|
||||||
|
@ -60,7 +60,7 @@ def show_operation do
|
||||||
Operation.parameter(:id, :path, :string, "ID of the report")
|
Operation.parameter(:id, :path, :string, "ID of the report")
|
||||||
],
|
],
|
||||||
responses: %{
|
responses: %{
|
||||||
200 => Operation.response("Account", "application/json", report()),
|
200 => Operation.response("Report", "application/json", report()),
|
||||||
401 => Operation.response("Error", "application/json", ApiError),
|
401 => Operation.response("Error", "application/json", ApiError),
|
||||||
404 => Operation.response("Error", "application/json", ApiError)
|
404 => Operation.response("Error", "application/json", ApiError)
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ def resolve_operation do
|
||||||
Operation.parameter(:id, :path, :string, "ID of the report")
|
Operation.parameter(:id, :path, :string, "ID of the report")
|
||||||
],
|
],
|
||||||
responses: %{
|
responses: %{
|
||||||
200 => Operation.response("Account", "application/json", report()),
|
200 => Operation.response("Report", "application/json", report()),
|
||||||
400 => Operation.response("Error", "application/json", ApiError),
|
400 => Operation.response("Error", "application/json", ApiError),
|
||||||
401 => Operation.response("Error", "application/json", ApiError)
|
401 => Operation.response("Error", "application/json", ApiError)
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ def reopen_operation do
|
||||||
Operation.parameter(:id, :path, :string, "ID of the report")
|
Operation.parameter(:id, :path, :string, "ID of the report")
|
||||||
],
|
],
|
||||||
responses: %{
|
responses: %{
|
||||||
200 => Operation.response("Account", "application/json", report()),
|
200 => Operation.response("Report", "application/json", report()),
|
||||||
400 => Operation.response("Error", "application/json", ApiError),
|
400 => Operation.response("Error", "application/json", ApiError),
|
||||||
401 => Operation.response("Error", "application/json", ApiError)
|
401 => Operation.response("Error", "application/json", ApiError)
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ def assign_to_self_operation do
|
||||||
Operation.parameter(:id, :path, :string, "ID of the report")
|
Operation.parameter(:id, :path, :string, "ID of the report")
|
||||||
],
|
],
|
||||||
responses: %{
|
responses: %{
|
||||||
200 => Operation.response("Account", "application/json", report()),
|
200 => Operation.response("Report", "application/json", report()),
|
||||||
400 => Operation.response("Error", "application/json", ApiError),
|
400 => Operation.response("Error", "application/json", ApiError),
|
||||||
401 => Operation.response("Error", "application/json", ApiError)
|
401 => Operation.response("Error", "application/json", ApiError)
|
||||||
}
|
}
|
||||||
|
@ -132,7 +132,7 @@ def unassign_operation do
|
||||||
Operation.parameter(:id, :path, :string, "ID of the report")
|
Operation.parameter(:id, :path, :string, "ID of the report")
|
||||||
],
|
],
|
||||||
responses: %{
|
responses: %{
|
||||||
200 => Operation.response("Account", "application/json", report()),
|
200 => Operation.response("Report", "application/json", report()),
|
||||||
400 => Operation.response("Error", "application/json", ApiError),
|
400 => Operation.response("Error", "application/json", ApiError),
|
||||||
401 => Operation.response("Error", "application/json", ApiError)
|
401 => Operation.response("Error", "application/json", ApiError)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue