append to documentation

This commit is contained in:
Partouf
2019-10-27 15:37:02 +01:00
parent d29b5cbf1f
commit 05f15ddc10

View File

@@ -235,6 +235,18 @@ Returns:
The storedId can be used in the api call /api/shortlinkinfo/<id> and to open in the website with a /z/<id> shortlink.
### `GET /z/<id>` - Opens the website from a shortlink
This call opens the website in a state that was previously saved using the built-in shortener.
### `GET /z/<id>/code/<sourceid>` - Returns just the sourcecode from a shortlink
This call returns plain/text for the code that was previously saved using the built-in shortener.
If there were multiple editors during the saved session, you can retreive them by setting <sourceid> to 1, 2, 3, etcetera, otherwise <sourceid> can be set to 1.
### `GET /clientstate/<base64>` - Opens the website in a given state
This call is to open the website with a given state (without having to store the state first with /shortener)