hubmapconsortium / ingest-api

MIT License
0 stars 0 forks source link

Add user key/store endpoints #655

Closed shirey closed 3 weeks ago

shirey commented 3 weeks ago

The portal UI needs to store/read simple user specific information. To support this add a new service with four endpoints as described in the User Key/Value store API document

Discussion/Design Decision needed: Likely we will back this with the existing MySQL cluster. To that end, we should discuss if the userid, key (attribute name) and value are three separate columns or if key and value are two columns as described below.

Add the Globus Identity ID (as show in graphic below) followed by a colon ":" to all keys coming in endpoint requests/urls to lookup/add keys in the key-value store. The user's Globus Identity ID will be retrieved form the required Auth Bearer token. For example if GET /user/keys/mykeyname is called with a token for the user shown below the key as sent to the backend key-value store will be:

      `e19adbbb-73c3-43a7-b05e-0eead04f5ff8:mykeyname`

Image

shirey commented 3 weeks ago

Closing as it was replaced by an issue in the new x-atlas-consortia/user-key-value-api repo: https://github.com/x-atlas-consortia/user-key-value-api/issues/1