Central Registry

0 users4 shops 0 shop memberships

What it does

๐Ÿ‘ค

Users

Register a username, get a user_key.

๐Ÿช

Shops

Register a unique shop name, get a shop_key.

๐ŸŽŸ๏ธ

Shop users

Join a shop (with your user_key), get an api_key for that shop.

โœ…

Verify

Check any key. Answer is {"valid": true|false}.

๐Ÿงน

Remove

A shop deletes itself with its shop_key (reset).

๐Ÿ”’

Private

Keys shown once, stored only as SHA-256 hashes.

Players

1. Register (once). Save the user_key: it is shown only once.

curl -s -X POST https://msampathkumar.com/demos/build-your-pc/registry/users \
  -H 'content-type: application/json' -d '{"username": "you"}'

2. Join a shop. You get an api_key for that shop only.

curl -s -X POST https://msampathkumar.com/demos/build-your-pc/registry/shop-users \
  -H 'content-type: application/json' \
  -d '{"username": "you", "user_key": "usr_...", "shop_name": "silicon-forge"}'

3. Shop with your username + that api_key (headers X-Username, X-API-Key).

Shops and services

Paths are relative to https://msampathkumar.com/demos/build-your-pc/registry. Every request and reply is JSON.