-
Notifications
You must be signed in to change notification settings - Fork 0
Getting the list of pages of the wiki
Théandre Bourry edited this page Jun 21, 2023
·
1 revision
To get the list of pages available in the wiki, you should make a call to the route
GET api/list
This will read the server's folder containing the markdown files for each page, and return a list of small json objects containing the link to every page, as well as their display names.
This route is accessible with no authorization at all.
There are no mandatory parameters to give for this route.
There are no optional parameters to give for this route.
As a GET request, the body should remain empty
When successful, this route should return a 200 HTTP code.
This is how the body of the response will look:
[
{
"url": "?File_Name1",
"name": "File Name1"
},
{
"url": "?File_Name2",
"name": "File Name2"
},
{
"url": "?...",
"name": "..."
},
...
]