mirror of
https://github.com/wanderer-industries/wanderer
synced 2026-04-30 14:30:47 +00:00
18 lines
517 B
Elixir
18 lines
517 B
Elixir
defmodule WandererAppWeb.OpenApiV1Spec do
|
|
@moduledoc """
|
|
OpenAPI spec specifically for v1 JSON:API endpoints generated by AshJsonApi.
|
|
"""
|
|
|
|
@behaviour OpenApiSpex.OpenApi
|
|
|
|
alias OpenApiSpex.{OpenApi, Info, Server, Components}
|
|
|
|
@impl OpenApiSpex.OpenApi
|
|
def spec do
|
|
# This is called by the modify_open_api option in the router
|
|
# We delegate to WandererAppWeb.OpenApi module which generates
|
|
# the spec from AshJsonApi with custom endpoints merged in
|
|
WandererAppWeb.OpenApi.spec()
|
|
end
|
|
end
|