You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
defmodule Mix.Tasks.Pleroma.OpenapiSpec do
|
|
def run([path]) do
|
|
# Load Pleroma application to get version info
|
|
Application.load(:pleroma)
|
|
spec = Pleroma.Web.ApiSpec.spec(server_specific: false) |> Jason.encode!()
|
|
File.write(path, spec)
|
|
end
|
|
end
|