Skip to content

Instantly share code, notes, and snippets.

@jordangarcia
Created April 14, 2020 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordangarcia/9ec46e45213d48c46390145de3703f67 to your computer and use it in GitHub Desktop.
Save jordangarcia/9ec46e45213d48c46390145de3703f67 to your computer and use it in GitHub Desktop.

Authentication

Must supply Authorization: Bearer ${token} as a header

Endpoints

GET /user/kv

Returns a mapping of all key values for that user

Example Response

{
  "key1": "foo",
  "key2": false,
  "key3": null,
  "key4": {
    "val": "objects are okay"
  }
}

GET /user/kv/{key}

Returns the value for a specific key,

PUT /user/kv/{key}

body

{ "value": "value for this key" }

The value a key can be anything JSON serializable.

DELETE /user/kv/{key}

Deletes entry for specified key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment