API Update (#876)

This adds some useful functions to the API and redefines the way the params are checked.

API Versioning
Very important to be able to check from the client if the serverside API is still compatible with the client implementation
Refactored Params
Mark params as required / optional
Different types of params (string / integer / list / select / senderkey)
Name and description for params
API Function to get all the functions a specific ip/token combo is allowed to use
API Function to get details about a specific API function
This commit is contained in:
Werner
2016-09-11 14:53:20 +02:00
committed by skull132
parent 18ec817b67
commit 0a2df816c6
3 changed files with 227 additions and 29 deletions

View File

@@ -21,7 +21,7 @@ CREATE TABLE `ss13_admin_log` (
CREATE TABLE `ss13_api_functions` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`function` VARCHAR(50) NULL DEFAULT '' COLLATE 'utf8_bin',
`function` VARCHAR(50) NOT NULL COLLATE 'utf8_bin',
`description` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8_bin',
PRIMARY KEY (`id`)
)