-
Notifications
You must be signed in to change notification settings - Fork 0
Routes
Martin Evans edited this page Oct 23, 2015
·
7 revisions
- GET / *
- Redirects (307) to the local IP of the bastet server for this house, with the given path/parameters/headers.
- PUT /
- Body: Contains public key of this instance
BODY {
key: "Public Key (SSH Key?)",
invite: "Invite Key (Ask us nicely)",
url: "URL of your bastet server (within the LAN)",
}
- Register a new bastet local instance
- GET /token
- Returns a token string (see PATCH /)
- PATCH /
- Body: Signed local IP address
BODY {
payload: "A string, containing JSON data (see below)"
key: "Public Key (SSH Key?)",
signature: "Signature of blob field with key"
}
PAYLOAD {
url: "A URL string, to redirect requests to",
token: "The token (see above GET /token) to consume"
}
- Change the binding for the given bastet server (ID by key)