diff options
author | rinpatch <rinpatch@sdf.org> | 2021-02-03 15:38:59 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2021-02-03 16:07:44 +0300 |
commit | 9fcff7851f9b54d6baa14d87af3087ac3ce373dc (patch) | |
tree | d8325ce0a0a9138b35a59cfe4d03f40819de002c /lib/mix | |
parent | ba40af054cc90417c5b2b347e325b53c7346e29c (diff) | |
download | pleroma-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.ex | 6 |
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 |