Skip to content

Instantly share code, notes, and snippets.

@mccraigmccraig
Created August 20, 2018 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mccraigmccraig/766b47fd75b957c77e191099f1ce1df0 to your computer and use it in GitHub Desktop.
Save mccraigmccraig/766b47fd75b957c77e191099f1ce1df0 to your computer and use it in GitHub Desktop.
(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