-
-
Save mccraigmccraig/766b47fd75b957c77e191099f1ce1df0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def org-user-files-resource-spec | |
(util/apply-access-controls | |
{:post | |
{:parameters {:path {:org-id s/Uuid | |
:org-user-id s/Uuid} | |
:body {:file er_api.service.resources.tempfile.TempfilePartial | |
(s/optional-key :context) (s/maybe s/Str)}} | |
:coercion-matchers | |
{:body tmpf/tempfile-part-coercion-matchers} | |
:consumes #{"multipart/form-data"} | |
:part-consumer (tmpf/->TempfilePartConsumer) | |
:produces #{"application/json"} | |
:summary "upload a file for an org-user"}})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment