Update readme
This commit is contained in:
+9
-9
@@ -155,11 +155,11 @@ Generate a new API key for a user.
|
||||
|
||||
**Syntax:**
|
||||
```bash
|
||||
ps-serve create-key <user_id>
|
||||
ps-serve create-key <user_name>
|
||||
```
|
||||
|
||||
**Arguments:**
|
||||
- `<user_id>`: The ID of the user (obtained from `create-user` output)
|
||||
- `<user_name>`: The username of the user (obtained from `create-user` output)
|
||||
|
||||
**What it does:**
|
||||
- Generates a random 32-character API key
|
||||
@@ -169,8 +169,8 @@ ps-serve create-key <user_id>
|
||||
|
||||
**Example:**
|
||||
```bash
|
||||
$ ps-serve create-key 1
|
||||
API key created for user 1
|
||||
$ ps-serve create-key alice
|
||||
API key created for user alice
|
||||
Key: 4YXDJoXf26auwGFQPKB6aB-kY6HxbkKPJzmWFbs7cnM
|
||||
Keep this key safe - you won't be able to see it again!
|
||||
```
|
||||
@@ -184,10 +184,10 @@ Keep this key safe - you won't be able to see it again!
|
||||
**Example Workflow:**
|
||||
```bash
|
||||
# Create two keys for the same user (one for testing, one for production)
|
||||
$ ps-serve create-key 1
|
||||
$ ps-serve create-key alice
|
||||
Key: test_key_abc123...
|
||||
|
||||
$ ps-serve create-key 1
|
||||
$ ps-serve create-key alice
|
||||
Key: prod_key_xyz789...
|
||||
```
|
||||
|
||||
@@ -289,9 +289,9 @@ ps-serve create-user bob
|
||||
### 3. Create API Keys
|
||||
|
||||
```bash
|
||||
ps-serve create-key 1 # For alice
|
||||
ps-serve create-key alice # For alice
|
||||
# Save this key somewhere secure
|
||||
ps-serve create-key 2 # For bob
|
||||
ps-serve create-key bob # For bob
|
||||
```
|
||||
|
||||
### 4. Start the Server
|
||||
@@ -509,7 +509,7 @@ After getting `ps-serve` running:
|
||||
For more detailed information:
|
||||
|
||||
- **API Documentation**: Start the server and visit `http://localhost:8000/docs`
|
||||
- **Deployment Guide**: See `DEPLOYMENT.md`
|
||||
- **Deployment Guide**: See `README.md`
|
||||
- **Source Code**: Check `privatestudio/web/` for implementation details
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user