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