mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
🐛 Fix backend api doc generation
This commit is contained in:
parent
1f68c6164a
commit
19d88cc1a6
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@
|
||||||
:added (::added mdata)
|
:added (::added mdata)
|
||||||
:changes (some->> (::changes mdata) (partition-all 2) (map vec))
|
:changes (some->> (::changes mdata) (partition-all 2) (map vec))
|
||||||
:spec (fmt-spec mdata)
|
:spec (fmt-spec mdata)
|
||||||
:entrypoint (str (cf/get :public-uri) "/api/rpc/commands/" (::sv/name mdata))
|
:entrypoint (str (cf/get :public-uri) "/api/rpc/command/" (::sv/name mdata))
|
||||||
|
|
||||||
:params-schema-js (fmt-schema :js mdata ::sm/params)
|
:params-schema-js (fmt-schema :js mdata ::sm/params)
|
||||||
:result-schema-js (fmt-schema :js mdata ::sm/result)
|
:result-schema-js (fmt-schema :js mdata ::sm/result)
|
||||||
|
@ -155,7 +155,7 @@
|
||||||
(map (partial gen-method-doc options))
|
(map (partial gen-method-doc options))
|
||||||
(sort-by (juxt :module :name))
|
(sort-by (juxt :module :name))
|
||||||
(map (fn [doc]
|
(map (fn [doc]
|
||||||
[(str/ffmt "/commands/%" (:name doc)) (:repr doc)]))
|
[(str/ffmt "/command/%" (:name doc)) (:repr doc)]))
|
||||||
(into {})))]
|
(into {})))]
|
||||||
{:openapi "3.0.0"
|
{:openapi "3.0.0"
|
||||||
:info {:version (:main cf/version)}
|
:info {:version (:main cf/version)}
|
||||||
|
|
Loading…
Reference in a new issue