Improved http mapping file for the server
This commit is contained in:
@@ -1,11 +1,18 @@
|
|||||||
@VirtualDDNSRouter.Server_HostAddress = http://localhost:5277
|
@VirtualDDNSRouter.Server_HostAddress = http://localhost:5277
|
||||||
|
|
||||||
GET {{VirtualDDNSRouter.Server_HostAddress}}/todos/
|
### Set IP for a path
|
||||||
Accept: application/json
|
# This endpoint is used by clients to register/update their IP address for a specific path
|
||||||
|
# Parameters:
|
||||||
|
# - path: The path identifier (must match a rule in rules.yaml)
|
||||||
|
# - port: The port number the client wants to expose
|
||||||
|
# - apiKey: The API key for authentication (must match the rule for the path)
|
||||||
|
POST {{VirtualDDNSRouter.Server_HostAddress}}/setip/{path}/{port}/{apiKey}
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
GET {{VirtualDDNSRouter.Server_HostAddress}}/todos/1
|
### Redirect to registered service
|
||||||
Accept: application/json
|
# This endpoint redirects to the IP and port registered for a specific path
|
||||||
|
GET {{VirtualDDNSRouter.Server_HostAddress}}/goto/{path}
|
||||||
|
|
||||||
###
|
###
|
||||||
|
Reference in New Issue
Block a user