summaryrefslogtreecommitdiff
path: root/lib/mix
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2021-02-03 15:38:59 +0300
committerrinpatch <rinpatch@sdf.org>2021-02-03 16:07:44 +0300
commit9fcff7851f9b54d6baa14d87af3087ac3ce373dc (patch)
treed8325ce0a0a9138b35a59cfe4d03f40819de002c /lib/mix
parentba40af054cc90417c5b2b347e325b53c7346e29c (diff)
downloadpleroma-9fcff7851f9b54d6baa14d87af3087ac3ce373dc.tar.gz
pleroma-9fcff7851f9b54d6baa14d87af3087ac3ce373dc.zip
Improve OpenAPI spec and deploy it to api.pleroma.social
Too many changes in OpenAPI spec to describe each one, but basically it is tag fixes, bringing consitency to operation summaries and fixing some incorrect information.
Diffstat (limited to 'lib/mix')
-rw-r--r--lib/mix/tasks/pleroma/openapi_spec.ex6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/mix/tasks/pleroma/openapi_spec.ex b/lib/mix/tasks/pleroma/openapi_spec.ex
new file mode 100644
index 000000000..524bf5144
--- /dev/null
+++ b/lib/mix/tasks/pleroma/openapi_spec.ex
@@ -0,0 +1,6 @@
+defmodule Mix.Tasks.Pleroma.OpenapiSpec do
+ def run([path]) do
+ spec = Pleroma.Web.ApiSpec.spec(server_specific: false) |> Jason.encode!()
+ File.write(path, spec)
+ end
+end