projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
8f719c58b71b069a14314f48fa1b568d9ebafe89
[akkoma]
/
tasks
/
pleroma
/
openapi_spec.ex
1
defmodule Mix.Tasks.Pleroma.OpenapiSpec do
2
def run([path]) do
3
# Load Pleroma application to get version info
4
Application.load(:pleroma)
5
spec = Pleroma.Web.ApiSpec.spec(server_specific: false) |> Jason.encode!()
6
File.write(path, spec)
7
end
8
end