forked from fonoster/routr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
90 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Adds an entry into the location table | ||
|
||
**URL** | ||
|
||
`/location/{addressOfRecord}` | ||
|
||
**Method** | ||
|
||
`POST` | ||
|
||
**Parameters** | ||
|
||
| Parameter Name | Type | Value | Description | ||
| --- | :--------- | :--------- | :--------- | | ||
| addressOfRecord | path | string | Address of record for the new entry| | ||
|
||
**Request body** | ||
|
||
Supply a json containing an address, port, expires, user values. | ||
|
||
**Response** | ||
|
||
This method adds an entry to the location table. Useful for end-to-end testing. | ||
|
||
**Sample Call** | ||
|
||
```json | ||
POST /api/{apiversion}/location/sip:guest@guest | ||
{ | ||
"user": "guest", | ||
"address": "192.168.1.149", | ||
"port": 5080, | ||
"expires": 3600 | ||
} | ||
|
||
HTTP/1.1 200 OK | ||
{ | ||
"status": 200, | ||
"message": "Added location entry." | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Evicts an entry from the location table | ||
|
||
**URL** | ||
|
||
`/location/{addressOfRecord}` | ||
|
||
**Method** | ||
|
||
`DELETE` | ||
|
||
**Parameters** | ||
|
||
| Parameter Name | Type | Value | Description | ||
| --- | :--------- | :--------- | :--------- | | ||
| addressOfRecord | path | string | Address of record for the entry| | ||
|
||
**Request body** | ||
|
||
Do not supply a request body with this method. | ||
|
||
**Response** | ||
|
||
This method removes and entry for the give address of record | ||
|
||
**Sample Call** | ||
|
||
```json | ||
DELETE /api/{apiversion}/location/sip:guest@guest | ||
{ | ||
|
||
} | ||
|
||
HTTP/1.1 200 OK | ||
{ | ||
"status": 200, | ||
"message": "Location entry evicted." | ||
} | ||
``` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters