willowtreeapps / wombats-api

Wombats API
https://github.com/willowtreeapps/wombats-documentation
MIT License
10 stars 4 forks source link

Updating Access Keys #341

Open oconn opened 7 years ago

oconn commented 7 years ago

BEFORE SUBMITTING AN ISSUE CHECK THE FOLLOWING:

ISSUE DESCRIPTION

Need reqs for updating access keys, mainly, what fields should be updatable.

Current fields as of 14MAR17

(s/def :access-key/id string?)
(s/def :access-key/key string?)
(s/def :access-key/max-number-of-uses #(instance? Long %))
(s/def :access-key/number-of-uses #(instance? Long %))
(s/def :access-key/expiration-date inst?)
(s/def :access-key/description string?)
(s/def :access-key/created-by #(instance? Long %))
(s/def :access-key/updated-by #(instance? Long %))

(s/def ::new-access-key (s/keys :req [:access-key/key
                                      :access-key/max-number-of-uses
                                      :access-key/expiration-date
                                      :access-key/description]))

(s/def ::access-key (s/merge ::new-access-key
                             (s/keys :req [:access-key/id
                                           :access-key/number-of-uses
                                           :access-key/created-by
                                           :access-key/updated-by])))

1.0.0-alpha1

oconn commented 7 years ago

Updated Requirements:

This ticket now covers implementing the update endpoint.