add filters correctly
All checks were successful
Build and Publish / build-release (push) Successful in 1m33s
All checks were successful
Build and Publish / build-release (push) Successful in 1m33s
This commit is contained in:
@@ -12,11 +12,25 @@ defmodule WorkloadServiceWeb.TaskController do
|
|||||||
operation(:list,
|
operation(:list,
|
||||||
summary: "List tasks",
|
summary: "List tasks",
|
||||||
parameters: [
|
parameters: [
|
||||||
page: [in: :query, type: :integer, required: false, example: 1],
|
"page[number]": [in: :query, type: :integer, required: false, example: 1],
|
||||||
page_size: [in: :query, type: :integer, required: false, example: 20],
|
"page[size]": [in: :query, type: :integer, required: false, example: 20],
|
||||||
status: [in: :query, type: :string, required: false],
|
filters: [
|
||||||
org_id: [in: :query, type: :string, required: false],
|
in: :query,
|
||||||
application_id: [in: :query, type: :string, required: false]
|
schema: %OpenApiSpex.Schema{
|
||||||
|
type: :array,
|
||||||
|
items: %OpenApiSpex.Schema{
|
||||||
|
type: :object,
|
||||||
|
properties: %{
|
||||||
|
field: %OpenApiSpex.Schema{type: :string},
|
||||||
|
op: %OpenApiSpex.Schema{type: :string, default: "=="},
|
||||||
|
value: %OpenApiSpex.Schema{type: :string}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
required: false,
|
||||||
|
style: :deepObject,
|
||||||
|
explode: true
|
||||||
|
]
|
||||||
],
|
],
|
||||||
responses: [
|
responses: [
|
||||||
ok: {"Task list", "application/json", S.TaskListResponse},
|
ok: {"Task list", "application/json", S.TaskListResponse},
|
||||||
|
|||||||
2
mix.exs
2
mix.exs
@@ -55,7 +55,7 @@ defmodule WorkloadService.MixProject do
|
|||||||
{:commanded_ecto_projections, "~> 1.4"},
|
{:commanded_ecto_projections, "~> 1.4"},
|
||||||
{:eventstore, "~> 1.4"},
|
{:eventstore, "~> 1.4"},
|
||||||
{:open_api_spex, "~> 3.20"},
|
{:open_api_spex, "~> 3.20"},
|
||||||
{:flop, "~> 0.20"},
|
{:flop, "~> 0.26"},
|
||||||
{:amqp, "~> 4.1"},
|
{:amqp, "~> 4.1"},
|
||||||
{:uuid, "~> 1.1"},
|
{:uuid, "~> 1.1"},
|
||||||
{:req, "~> 0.5"},
|
{:req, "~> 0.5"},
|
||||||
|
|||||||
Reference in New Issue
Block a user