Wiki installation: Linux (RedHat el5.3)Install and configureMediawiki
Wiki Configuration:
Configuration File: defaultsettings. php // permission Configuration
Navigation bar on the left:/wiki/index. php/mediawiki: sidebar
* CC project // level-1 navigation ** API | API Documentation * navigation // navigation ** mainpage | mainpage-description ** portal-URL | portal ** currentevents-URL | currentevents * * recentchanges-URL | recentchanges ** randompage-URL | randompage ** helppage | help * search // search * toolbox // toolbox * ages
Page directory:
= API usage specification = API call basic documentation = call API = API server URL: https://api.xx.com/xx== API list =={| class = "MW-Statistics-table" | -! API category | API | description | -! Rowspan = 1 | User Interface | ''[[users. Reg]'' | ''user registration ''. | -! Rowspan = 1 | system interface | [[system. Version] | version check to check whether the latest version is used. [Completed] [completed preliminary test] |}
Page:
= Function description = Modify user information. = Call description ====== Request Method === post === request address === http://api.xxx.com/v1/users/reg== parameters === all parameters require URL encoding, please comply with [http://tools.ietf.org/html/rfc1738 rfc1738] {| class = "MW-Statistics-table" | -! Parameter | required | type | description |-| uname | true | string | user name |-| PWD | true | string | User Password | -| gender | true | int | gender |-| Address | true | string | frequent residence |}== return result ==== return parameter description = {| class = "MW-Statistics-table" | -! Parameter | required | type | description |-| code | true | int | status code |}=== return JSON sample = [{ "uid ": 222332, "name": "Ramos", "sex": 1, "Star": 1, "zidou": 1 "Birthday": "", "email_hash ": "2017628530_9c6b2b93842c46155b75b14a34054924", "tinyurl": "http://head.xiaonei.com/photos/tiny_10942g177.jpg", "headurl": "http://head.xiaonei.com/photos/tiny_10942g177.jpg", "mainurl": "http://head.xiaonei.com/photos/tiny_10942g177.jpg", "hometown_location": {"country ": "China", "Province": "Sichuan", "city": "Leshan"}, "work_history": [{"company_name": "Thousand Oaks", "Description ": "Excellent companies", "start_date": "2008-7-7", "end_date": ""}], "university_history": [{"name": "Beijing Second Foreign Language Institute ", "year": 2003, "department": "Emy of humanities"}], "hs_history": [{"name": "Heilongjiang Experimental Middle School", "grad_year ": 1999}],}] === meaning of the error code === For details, refer to [[bl-API-error | common error code list]
Custom Code:
= Description = meaning of the custom code in the API documentation = report type =: Report Type Code: 0 porn = feedback ==: contact type :: 0 QQ = message type =: Message Type Code: 0 Logon Message = success code =: Success status code: 0 success = gender type =: gender code: 0 male: 1 female = Star code =: 12 constellation: 100 Aries = Error code =: common error :: 11 failed or network exception: logon related: 21 user does not exist