mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 09:23:52 -05:00
append to documentation
This commit is contained in:
12
docs/API.md
12
docs/API.md
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user