mirror of
https://github.com/xtr-dev/rondevu-server.git
synced 2025-12-10 02:43:24 +00:00
Add custom peer ID support to register endpoint
- Update /register endpoint to accept optional custom peer ID - Add validation: 1-128 chars, non-empty, must be unique - Return 409 Conflict if peer ID already in use - Remove outdated API.md documentation - Update README.md with new register endpoint format 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
11
README.md
11
README.md
@@ -53,6 +53,17 @@ Health check endpoint with version
|
||||
#### `POST /register`
|
||||
Register a new peer and receive credentials (peerId + secret)
|
||||
|
||||
**Request (optional):**
|
||||
```json
|
||||
{
|
||||
"peerId": "my-custom-peer-id"
|
||||
}
|
||||
```
|
||||
|
||||
**Notes:**
|
||||
- `peerId` (optional): Custom peer ID (1-128 characters). If not provided, a random ID will be generated.
|
||||
- Returns 409 Conflict if the custom peer ID is already in use.
|
||||
|
||||
**Response:**
|
||||
```json
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user