[ { "type": "post", "url": "?action=checklogin", "title": "Perform a login", "name": "CheckLogin", "group": "Authorisation", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "user", "description": "
The user name to login with.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "pass", "description": "The password to login with.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "returnto", "description": "The URL to redirect to upon a successful login.
" } ] } }, "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "InvalidCredentialsError", "description": "The supplied credentials were invalid. Note that this error is actually a redirect to ?action=login&failed=yes (with the returnto parameter appended if you supplied one)
" } ] } }, "version": "0.0.0", "filename": "./modules/page-login.php", "groupTitle": "Authorisation" }, { "type": "get", "url": "?action=login[&failed=yes][&returnto={someUrl}]", "title": "Get the login page", "name": "Login", "group": "Authorisation", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "failed", "description": "Setting to yes causes a login failure message to be displayed above the login form.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "returnto", "description": "Set to the url to redirect to upon a successful login.
" } ] } }, "version": "0.0.0", "filename": "./modules/page-login.php", "groupTitle": "Authorisation" }, { "type": "post", "url": "?action=logout", "title": "Logout", "description": "Logout. Make sure that your bot requests this URL when it is finished - this call not only clears your cookies but also clears the server's session file as well. Note that you can request this when you are already logged out and it will completely wipe your session on the server.
", "name": "Logout", "group": "Authorisation", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "version": "0.0.0", "filename": "./modules/page-logout.php", "groupTitle": "Authorisation" }, { "type": "post", "url": "?action=comment", "title": "Comment on a page", "name": "Comment", "group": "Comment", "permission": [ { "name": "User", "title": "Only users loggged in may use this call.", "description": "" } ], "description": "Posts a comment on a page, optionally in reply to another comment. Currently, comments must be made by a logged-in user.
", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "message", "description": "The comment text. Supports the same syntax that the renderer of the main page supports. The default is extended markdown - see the help page of the specific wiki for more information.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "replyto", "description": "Optional. If specified the comment will be posted in reply to the comment with the specified id.
" } ] } }, "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "CommentNotFound", "description": "The comment to reply to was not found.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-comments.php", "groupTitle": "Comment" }, { "type": "post", "url": "?action=comment-delete&page={page_name}&delete_id={id_to_delete}", "title": "Delete a comment", "name": "CommentDelete", "group": "Comment", "permission": [ { "name": "User", "title": "Only users loggged in may use this call.", "description": "" } ], "description": "Deletes a comment with the specified id. If you aren't the one who made the comment in the first place, then you must be a moderator or better to delete it.
", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "delete_id", "description": "The id of the comment to delete.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "page", "description": "The page to operate on.
" } ] } }, "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "CommentNotFound", "description": "The comment to delete was not found.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-comments.php", "groupTitle": "Comment" }, { "type": "post", "url": "?action=comments-fetch&page={page_name}", "title": "Fetch the comments for a page", "name": "CommentsFetch", "group": "Comment", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "description": "Fetches the comments for the specified page. Returns them in a nested JSON structure.
", "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "PageNoteFound", "description": "The page to fetch the comments for was not found.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-comments.php", "groupTitle": "Comment", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "page", "description": "The page to operate on.
" } ] } } }, { "type": "post", "url": "?action=acquire-edit-key&page={pageName}", "title": "Acquire an edit key for a page", "description": "Returns an edit key that can be used to programmatically save an edit to a page. It does not necessarily mean that such an edit will be saved. For example, editing might be disabled, or you might not have permission to save an edit on a particular page.
", "name": "AcquireEditKey", "group": "Editing", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "version": "0.0.0", "filename": "./modules/page-edit.php", "groupTitle": "Editing", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "page", "description": "The page to operate on.
" } ] } } }, { "type": "get", "url": "?action=edit&page={pageName}[&newpage=yes]", "title": "Get an editing page", "description": "Gets an editing page for a given page. If you don't have permission to edit the page in question, a view source pagee is returned instead.
", "name": "EditPage", "group": "Editing", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "newpage", "description": "Set to 'yes' if a new page is being created. Only affects a few bits of text here and there, and the HTTP response code recieved on success from the save
action.
The page to operate on.
" } ] } }, "version": "0.0.0", "filename": "./modules/page-edit.php", "groupTitle": "Editing" }, { "type": "get", "url": "?action=history-revert&page={pageName}&revision={rid}", "title": "Revert a page to a previous version", "name": "HistoryRevert", "group": "Editing", "permission": [ { "name": "User", "title": "Only users loggged in may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "revision", "description": "The page revision number to revert to.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "page", "description": "The page to operate on.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-history.php", "groupTitle": "Editing", "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "UserNotLoggedInError", "description": "You didn't log in before sending this request.
" }, { "group": "Error 4xx", "optional": false, "field": "UserNotModeratorError", "description": "You weren't loggged in as a moderator before sending this request.
" } ] } } }, { "type": "post", "url": "?action=preview-edit&page={pageName}[&newpage=yes]", "title": "Get a preview of the page", "description": "Gets a preview of the current edit state of a given page
", "name": "PreviewPage", "group": "Editing", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "newpage", "description": "Set to 'yes' if a new page is being created.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "preview-edit", "description": "Set to a value to preview an edit of a page.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "page", "description": "The page to operate on.
" } ] } }, "version": "0.0.0", "filename": "./modules/page-edit.php", "groupTitle": "Editing" }, { "type": "post", "url": "?action=save&page={pageName}", "title": "Save an edit to a page", "description": "Saves an edit to a page. If an edit conflict is encountered, then a conflict resolution page is returned instead.
", "name": "SavePage", "group": "Editing", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "newpage", "description": "GET only. Set to 'yes' to indicate that this is a new page that is being saved. Only affects the HTTP response code you recieve upon success.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "content", "description": "POST only. The new content to save to the given filename.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "tags", "description": "POST only. A comma-separated list of tags to assign to the current page. Will replace the existing list of tags, if any are present.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "prev-content-hash", "description": "POST only. The hash of the original content before editing. If this hash is found to be different to a hash computed of the currentl saved content, a conflict resolution page will be returned instead of saving the provided content.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "page", "description": "The page to operate on.
" } ] } }, "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "UnsufficientPermissionError", "description": "You don't currently have sufficient permissions to save an edit.
" } ] } }, "version": "0.0.0", "filename": "./modules/page-edit.php", "groupTitle": "Editing" }, { "type": "post", "url": "?action=delete", "title": "Delete a page", "description": "Delete a page and all its associated data.
", "name": "DeletePage", "group": "Page", "permission": [ { "name": "Moderator", "title": "Only users loggged with a moderator account may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "page", "description": "The name of the page to delete.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "delete", "description": "Set to 'yes' to actually delete the page.
" } ] } }, "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "PageNonExistentError", "description": "The specified page doesn't exist
" }, { "group": "Error 4xx", "optional": false, "field": "UserNotModeratorError", "description": "You weren't loggged in as a moderator before sending this request.
" } ] } }, "version": "0.0.0", "filename": "./modules/page-delete.php", "groupTitle": "Page" }, { "type": "get", "url": "?action=history&page={pageName}[&format={format}]", "title": "Get a list of revisions for a page", "name": "History", "group": "Page", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "format", "description": "The format to return the list of pages in. available values: html, json, text. Default: html
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "page", "description": "The page to operate on.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-history.php", "groupTitle": "Page" }, { "type": "get", "url": "?action=list[&format={format}]", "title": "List all pages", "description": "Gets a list of all the pages currently stored on the wiki.
", "name": "ListPages", "group": "Page", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "format", "description": "The format to return the page list in. Default: html. Other foramts available: json, text
" } ] } }, "version": "0.0.0", "filename": "./modules/page-list.php", "groupTitle": "Page" }, { "type": "get", "url": "?action=move[&new_name={newPageName}]", "title": "Move a page", "name": "Move", "group": "Page", "permission": [ { "name": "Moderator", "title": "Only users loggged with a moderator account may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "new_name", "description": "The new name to move the page to. If not set a page will be returned containing a move page form.
" } ] } }, "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "EditingDisabledError", "description": "Editing is disabled on this wiki, so pages can't be moved.
" }, { "group": "Error 4xx", "optional": false, "field": "PageExistsAtDestinationError", "description": "A page already exists with the specified new name.
" }, { "group": "Error 4xx", "optional": false, "field": "NonExistentPageError", "description": "The page you're trying to move doesn't exist in the first place.
" }, { "group": "Error 4xx", "optional": false, "field": "PreExistingFileError", "description": "A pre-existing file on the server's file system was detected.
" }, { "group": "Error 4xx", "optional": false, "field": "UserNotModeratorError", "description": "You weren't loggged in as a moderator before sending this request.
" } ] } }, "version": "0.0.0", "filename": "./modules/page-move.php", "groupTitle": "Page" }, { "type": "get", "url": "?action=protect&page={pageName}", "title": "Toggle the protection of a page.", "name": "Protect", "group": "Page", "permission": [ { "name": "Moderator", "title": "Only users loggged with a moderator account may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "page", "description": "The page name to toggle the protection of.
" } ] } }, "version": "0.0.0", "filename": "./modules/action-protect.php", "groupTitle": "Page" }, { "type": "get", "url": "?action=random[&mode={modeName}]", "title": "Redirects to a random page", "name": "Random", "group": "Page", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "mode", "description": "The view mode to redirect to. This parameter is basically just passed through to the direct. It works in the same way as the mode parameter on the view action does.
" } ] } }, "version": "0.0.0", "filename": "./modules/action-random.php", "groupTitle": "Page" }, { "type": "get", "url": "?action=raw&page={pageName}", "title": "Get the raw source code of a page", "name": "RawSource", "group": "Page", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "page", "description": "The page to return the source of.
" } ] } }, "version": "0.0.0", "filename": "./modules/action-raw.php", "groupTitle": "Page" }, { "type": "get", "url": "?action=view[&page={pageName}][&revision=rid][&printable=yes][&mode={mode}]", "title": "View a page", "name": "View", "group": "Page", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "number", "optional": false, "field": "revision", "description": "The revision number to display.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "mode", "description": "Optional. The display mode to use. Can hold the following values: 'normal' - The default. Sends a normal page. 'printable' - Sends a printable version of the page. 'contentonly' - Sends only the content of the page, not the extra stuff around it. 'parsedsourceonly' - Sends only the raw rendered source of the page, as it appears just after it has come out of the page parser. Useful for writing external tools (see also the raw
action).
The page to operate on.
" } ] } }, "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "NonExistentPageError", "description": "The page doesn't exist and editing is disabled in the wiki's settings. If editing isn't disabled, you will be redirected to the edit page instead.
" }, { "group": "Error 4xx", "optional": false, "field": "NonExistentRevisionError", "description": "The specified revision was not found.
" } ] } }, "version": "0.0.0", "filename": "./modules/page-view.php", "groupTitle": "Page" }, { "type": "get", "url": "?action=opensearch-description", "title": "Get the opensearch description file", "name": "OpenSearchDescription", "group": "Search", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "version": "0.0.0", "filename": "./modules/feature-search.php", "groupTitle": "Search" }, { "type": "get", "url": "?action=suggest-pages[&type={type}]", "title": "Get page name suggestions for a query", "name": "OpenSearchDescription", "group": "Search", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "text", "description": "The search query string to get search suggestions for.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "type", "description": "The type of result to return. Default value: json. Available values: json, opensearch
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-search.php", "groupTitle": "Search" }, { "type": "get", "url": "?action=search&query={text}[&format={format}]", "title": "Search the wiki for a given query string", "name": "Search", "group": "Search", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "query", "description": "The query string to search for.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "format", "description": "Optional. Valid values: html, json. In json mode an object is returned with page names as keys, values as search result information - sorted in ranking order.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-search.php", "groupTitle": "Search" }, { "type": "get", "url": "?action=query-searchindex&query={text}", "title": "Inspect the internals of the search results for a query", "name": "Search", "group": "Search", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "query", "description": "The query string to search for.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-search.php", "groupTitle": "Search" }, { "type": "get", "url": "?action=index&page={pageName}", "title": "Get an index of words for a given page", "name": "SearchIndex", "group": "Search", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "description": "For debugging purposes. Be warned - the format could change at any time!
", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "page", "description": "The page to generate a word index page.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-search.php", "groupTitle": "Search" }, { "type": "get", "url": "?action=invindex-rebuild", "title": "Rebuild the inverted search index from scratch", "description": "Causes the inverted search index to be completely rebuilt from scratch. Can take a while for large wikis!
", "name": "SearchInvindexRebuild", "group": "Search", "permission": [ { "name": "Admin", "title": "Only the wiki administrator may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "secret", "description": "Optional. Specify the secret from peppermint.json here in order to rebuild the search index without logging in.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-search.php", "groupTitle": "Search" }, { "type": "get", "url": "?action=idindex-show", "title": "Show the id index", "description": "Outputs the id index. Useful if you need to verify that it's working as expected. Output is a json object.
", "name": "SearchShowIdIndex", "group": "Search", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "version": "0.0.0", "filename": "./modules/feature-search.php", "groupTitle": "Search" }, { "type": "post", "url": "?action=change-password", "title": "Change your password", "name": "ChangePassword", "group": "Settings", "permission": [ { "name": "User", "title": "Only users loggged in may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "current-pass", "description": "Your current password.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "new-pass", "description": "Your new password.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "new-pass-confirm", "description": "Your new password again, to make sure you've typed it correctly.
" } ] } }, "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "PasswordMismatchError", "description": "The new password fields don't match.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-user-preferences.php", "groupTitle": "Settings" }, { "type": "post", "url": "?action=user-add", "title": "Create a user account", "name": "UserAdd", "group": "Settings", "permission": [ { "name": "Moderator", "title": "Only users loggged with a moderator account may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "user", "description": "The username for the new user.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "email", "description": "Optional. Specifies the email address for the new user account.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-user-table.php", "groupTitle": "Settings" }, { "type": "post", "url": "?action=set-password", "title": "Set a user's password", "name": "UserAdd", "group": "Settings", "permission": [ { "name": "Moderator", "title": "Only users loggged with a moderator account may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "user", "description": "The username of the account to set the password for.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "new-pass", "description": "The new password for the specified username.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-user-table.php", "groupTitle": "Settings" }, { "type": "post", "url": "?action=user-delete", "title": "Delete a user account", "name": "UserDelete", "group": "Settings", "permission": [ { "name": "Moderator", "title": "Only users loggged with a moderator account may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "user", "description": "The username of the account to delete. username.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-user-table.php", "groupTitle": "Settings" }, { "type": "get", "url": "?action=user-preferences", "title": "Get a user preferences configuration page", "name": "UserPreferences", "group": "Settings", "permission": [ { "name": "User", "title": "Only users loggged in may use this call.", "description": "" } ], "version": "0.0.0", "filename": "./modules/feature-user-preferences.php", "groupTitle": "Settings" }, { "type": "post", "url": "?action=save-preferences", "title": "Save your user preferences", "name": "UserPreferencesSave", "group": "Settings", "permission": [ { "name": "User", "title": "Only users loggged in may use this call.", "description": "" } ], "version": "0.0.0", "filename": "./modules/feature-user-preferences.php", "groupTitle": "Settings" }, { "type": "get", "url": "?action=user-table", "title": "Get the user table", "name": "UserTable", "group": "Settings", "permission": [ { "name": "Moderator", "title": "Only users loggged with a moderator account may use this call.", "description": "" } ], "version": "0.0.0", "filename": "./modules/feature-user-table.php", "groupTitle": "Settings" }, { "type": "get", "url": "?action=recent-changes[&format={code}]", "title": "Get a list of recent changes", "name": "RecentChanges", "group": "Stats", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "format", "description": "The format to return the recent changes in. Values: html, json. Default: html.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-recent-changes.php", "groupTitle": "Stats" }, { "type": "get", "url": "?action=status[&minified=type]", "title": "Get the json-formatted status of this wiki", "name": "Status", "group": "Stats", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "boolean", "optional": false, "field": "Whether", "description": "or not the result should be minified JSON. Default: false
" } ] } }, "version": "0.0.0", "filename": "./modules/api-status.php", "groupTitle": "Stats" }, { "type": "get", "url": "?action=avatar&user={username}[&size={size}]", "title": "Get a user's avatar", "name": "Avatar", "group": "Upload", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "user", "description": "The username to fetch the avatar for
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "size", "description": "The preferred size of the avatar
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-user-preferences.php", "groupTitle": "Upload" }, { "type": "get", "url": "?action=preview&page={pageName}[&size={someSize}]", "title": "Get a preview of a file", "name": "PreviewFile", "group": "Upload", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "page", "description": "The name of the file to preview.
" }, { "group": "Parameter", "type": "number", "optional": false, "field": "size", "description": "Optional. The size fo the resulting preview. Will be clamped to fit within the bounds specified in the wiki's settings. May also be set to the keyword 'original', which will cause the original file to be returned with it's appropriate mime type instead.
" } ] } }, "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "PreviewNoFileError", "description": "No file was found associated with the specified page.
" }, { "group": "Error 4xx", "optional": false, "field": "PreviewUnknownFileTypeError", "description": "Pepperminty Wiki was unable to generate a preview for the requested file's type.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-upload.php", "groupTitle": "Upload" }, { "type": "post", "url": "?action=upload", "title": "Upload a file", "name": "UploadFile", "group": "Upload", "permission": [ { "name": "User", "title": "Only users loggged in may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "name", "description": "The name of the file to upload.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "description", "description": "A description of the file.
" }, { "group": "Parameter", "type": "file", "optional": false, "field": "file", "description": "The file to upload.
" }, { "group": "Parameter", "type": "boolean", "optional": false, "field": "avatar", "description": "Whether this upload should be uploaded as the current user's avatar. If specified, any filenames provided will be ignored.
" } ] } }, "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "UploadsDisabledError", "description": "Uploads are currently disabled in the wiki's settings.
" }, { "group": "Error 4xx", "optional": false, "field": "UnknownFileTypeError", "description": "The type of the file you uploaded is not currently allowed in the wiki's settings.
" }, { "group": "Error 4xx", "optional": false, "field": "ImageDimensionsFiledError", "description": "PeppermintyWiki couldn't obtain the dimensions of the image you uploaded.
" }, { "group": "Error 4xx", "optional": false, "field": "DangerousFileError", "description": "The file uploaded appears to be dangerous.
" }, { "group": "Error 4xx", "optional": false, "field": "DuplicateFileError", "description": "The filename specified is a duplicate of a file that already exists.
" }, { "group": "Error 4xx", "optional": false, "field": "FileTamperedError", "description": "Pepperminty Wiki couldn't verify that the file wasn't tampered with during theupload process.
" }, { "group": "Error 4xx", "optional": false, "field": "UserNotLoggedInError", "description": "You didn't log in before sending this request.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-upload.php", "groupTitle": "Upload" }, { "type": "get", "url": "?action=upload[&avatar=yes]", "title": "Get a page to let you upload a file.", "name": "UploadFilePage", "group": "Upload", "permission": [ { "name": "User", "title": "Only users loggged in may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "boolean", "optional": false, "field": "avatar", "description": "Optional. If true then a special page to upload your avatar is displayed instead.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-upload.php", "groupTitle": "Upload" }, { "type": "get", "url": "?action=configure", "title": "Get a page to change the global wiki settings", "name": "ConfigureSettings", "group": "Utility", "permission": [ { "name": "Moderator", "title": "Only users loggged with a moderator account may use this call.", "description": "" } ], "version": "0.0.0", "filename": "./modules/feature-guiconfig.php", "groupTitle": "Utility" }, { "type": "post", "url": "?action=configure-save", "title": "Save changes to the global wiki settings", "name": "ConfigureSettings", "group": "Utility", "permission": [ { "name": "Moderator", "title": "Only users loggged with a moderator account may use this call.", "description": "" } ], "version": "0.0.0", "filename": "./modules/feature-guiconfig.php", "groupTitle": "Utility" }, { "type": "get", "url": "?action=credits", "title": "Get the credits page", "name": "Credits", "group": "Utility", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "version": "0.0.0", "filename": "./modules/page-credits.php", "groupTitle": "Utility" }, { "type": "get", "url": "?action=debug", "title": "Get a debug dump", "name": "Debug", "group": "Utility", "permission": [ { "name": "Moderator", "title": "Only users loggged with a moderator account may use this call.", "description": "" } ], "version": "0.0.0", "filename": "./modules/page-debug-info.php", "groupTitle": "Utility", "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "UserNotModeratorError", "description": "You weren't loggged in as a moderator before sending this request.
" } ] } } }, { "type": "get", "url": "?action=export", "title": "Export the all the wiki's content", "description": "Export all the wiki's content. Please ask for permission before making a request to this URI. Note that some wikis may only allow moderators to export content.
", "name": "Export", "group": "Utility", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "InsufficientExportPermissionsError", "description": "The wiki has the export_allow_only_admins option turned on, and you aren't logged into a moderator account.
" }, { "group": "Error 4xx", "optional": false, "field": "CouldntOpenTempFileError", "description": "Pepperminty Wiki couldn't open a temporary file to send the compressed archive to.
" }, { "group": "Error 4xx", "optional": false, "field": "CouldntCloseTempFileError", "description": "Pepperminty Wiki couldn't close the temporary file to finish creating the zip archive ready for downloading.
" } ] } }, "version": "0.0.0", "filename": "./modules/page-export.php", "groupTitle": "Utility" }, { "type": "get", "url": "?action=hash&string={text}", "title": "Hash a password", "name": "Hash", "group": "Utility", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "string", "description": "The string to hash.
" }, { "group": "Parameter", "type": "boolean", "optional": false, "field": "raw", "description": "Whether to return the hashed password as a raw string instead of as part of an HTML page.
" } ] } }, "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "ParamNotFound", "description": "The string parameter was not specified.
" } ] } }, "version": "0.0.0", "filename": "./modules/action-hash.php", "groupTitle": "Utility" }, { "type": "get", "url": "?action=help[&dev=yes]", "title": "Get a help page", "description": "Get a customised help page. This page will be slightly different for every wiki, depending on their name, settings, and installed modules.
", "name": "Help", "group": "Utility", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "dev", "description": "Set to 'yes' to get a developer help page instead. The developer help page gives some general information about which modules and help page sections are registered, and other various (non-sensitive) settings.
" } ] } }, "version": "0.0.0", "filename": "./modules/page-help.php", "groupTitle": "Utility" }, { "type": "get", "url": "?action=list-tags[&tag=]", "title": "Get a list of tags or pages with a certain tag", "description": "Gets a list of all tags on the wiki. Adding the tag
parameter causes a list of pages with the given tag to be returned instead.
Optional. If provided a list of all the pages with that tag is returned instead.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "format", "description": "Optional. If specified sets the format of the returned result. Supported values: html, json. Default: html
" } ] } }, "version": "0.0.0", "filename": "./modules/page-list.php", "groupTitle": "Utility" }, { "type": "get", "url": "?action=stats", "title": "Show wiki statistics", "name": "Stats", "group": "Utility", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "format", "description": "Specify the format the data should be returned in. Supported formats: html (default), json.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "stat", "description": "HTML format only. If specified the page for the stat with this id is sent instead of the list of scalar stats.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-stats.php", "groupTitle": "Utility" }, { "type": "get", "url": "?action=update[do=yes]", "title": "Update the wiki", "description": "Update the wiki by downloading a new version of Pepperminty Wiki from the URL specified in the settings. Note that unless you change the url from it's default, all custom modules installed will be removed. Note also that this plugin is currently out of date. Use with extreme caution!
", "name": "Update", "group": "Utility", "permission": [ { "name": "Moderator", "title": "Only users loggged with a moderator account may use this call.", "description": "" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "do", "description": "Set to 'yes' to actually do the upgrade. Omission causes a page asking whether an update is desired instead.
" }, { "group": "Parameter", "type": "string", "optional": false, "field": "secret", "description": "The wiki's secret string that's stored in the settings.
" }, { "group": "Parameter", "optional": false, "field": "InvalidSecretError", "description": "The supplied secret doesn't match up with the secret stored in the wiki's settings.
" } ] } }, "version": "0.0.0", "filename": "./modules/page-update.php", "groupTitle": "Utility", "error": { "fields": { "Error 4xx": [ { "group": "Error 4xx", "optional": false, "field": "UserNotModeratorError", "description": "You weren't loggged in as a moderator before sending this request.
" } ] } } }, { "type": "get|post", "url": "?action=stats-update", "title": "Recalculate the wiki's statistics", "name": "UpdateStats", "group": "Utility", "permission": [ { "name": "Administrator" } ], "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "string", "optional": false, "field": "secret", "description": "POST only, optional. If you're not logged in, you can specify the wiki's sekret instead (find it in peppermint.json) using this parameter.
" }, { "group": "Parameter", "type": "bool", "optional": false, "field": "force", "description": "Whether the statistics should be recalculated anyway - even if they have already recently been recalculated. Default: no. Supported values: yes, no.
" } ] } }, "version": "0.0.0", "filename": "./modules/feature-stats.php", "groupTitle": "Utility" }, { "type": "get", "url": "?action=user-list[format=json]", "title": "List all users", "name": "UserList", "group": "Utility", "permission": [ { "name": "Anonymous", "title": "Anybody may use this call.", "description": "" } ], "version": "0.0.0", "filename": "./modules/page-user-list.php", "groupTitle": "Utility" } ]