en:outskirts:mages-peaks:authoring-api
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:outskirts:mages-peaks:authoring-api [2023/11/12 21:30] – removed - external edit (Unknown date) 127.0.0.1 | en:outskirts:mages-peaks:authoring-api [2024/10/28 08:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Laelith Authoring API ====== | ||
| + | |||
| + | This API is exposed by the Laelith-Api server, as described in [[en: | ||
| + | It supports back-end services for Laelith Authoring features. | ||
| + | |||
| + | As a guiding principle for Scenarios, Adventures and other authored contents, it is wished to store as much data as possible in the Laelith Wiki -- where it can be easily related to other contents and manipulated. | ||
| + | The first set of Authoring API endpoints allow to associate arbitrary complex attributes to a Wiki page -- this is realised by providing the capability to store/ | ||
| + | |||
| + | ===== Authoring API Endpoints for manipulating data associated with a Wiki page ===== | ||
| + | |||
| + | ==== GET / | ||
| + | The main interest of this endpoint is to validate the availability of the API and the access to the Wiki. | ||
| + | |||
| + | '' | ||
| + | * '' | ||
| + | |||
| + | Returns a JSON object: \\ | ||
| + | '' | ||
| + | |||
| + | |||
| + | ==== GET / | ||
| + | Returns the list of all attachments of the specified Wiki page. | ||
| + | |||
| + | '' | ||
| + | * '' | ||
| + | |||
| + | Returns a JSON array of all the attachments to this page, with for each: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ==== POST / | ||
| + | Associates a JSON object with a Wiki page. If a JSON object was previously associated with the same page, it is replaced. | ||
| + | |||
| + | '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Returns a JSON object with '' | ||
| + | |||
| + | ==== GET / | ||
| + | Retrieves the JSON object associated with a Wiki page (404 status if it does not exist). | ||
| + | |||
| + | '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Returns the JSON object in the body. | ||
| + | |||
| + | |||
