Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion apps/api_web/lib/api_web/controllers/shape_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,21 @@ defmodule ApiWeb.ShapeController do
""")

common_index_parameters(__MODULE__, :shape)
filter_param(:id, name: :route, required: true)

parameter(
"filter[route]",
:query,
:string,
"""
Filter by route ID. Multiple route IDs #{comma_separated_list()}.

Note that the shape resource does not include a `route` relationship on API versions \
`2020-05-01` and later, so shapes in the response cannot be attributed to a route from \
the response body on those versions. Request a single route at a time if that \
attribution is needed.
""",
required: true
)

consumes("application/vnd.api+json")
produces("application/vnd.api+json")
Expand Down