wiki 使用筆記

來源:互聯網
上載者:User

標籤:des   style   blog   http   color   使用   

Wiki 安裝:Linux(Redhat EL5.3)下安裝配置MediaWiki

wiki配置:

設定檔:DefaultSettings.php  //許可權等配置

 

左邊導航條:/wiki/index.php/MediaWiki:Sidebar

* cc項目 //一級導航** api|API文檔* navigation //導航** mainpage|mainpage-description** portal-url|portal** currentevents-url|currentevents** recentchanges-url|recentchanges** randompage-url|randompage** helppage|help* SEARCH   //搜尋* TOOLBOX  //工具箱* LANGUAGES 

 

頁面目錄:

== API使用規範 ==API調用基礎文檔== 調用 API ==API Server URL: https://api.xx.com/xx== API列表 =={| class="mw-statistics-table"|-! 介面分類 || 介面名 || 描述|- ! rowspan=1 | 使用者介面| ‘‘[[users.reg]]‘‘ || ‘‘使用者註冊‘‘。|- ! rowspan=1 | 系統介面| [[system.version]] || 版本檢測,檢測是否為最新版本。[已完成][完成初步測試]|}

 

頁面:

== 功能說明 ==修改使用者資訊。== 調用說明 ===== 請求方式 ===POST=== 請求地址 ===http://api.xxx.com/v1/users/reg== 參數 ==所有參數都需進行URL編碼,編碼時請遵守 [http://tools.ietf.org/html/rfc1738 RFC1738]{| class="mw-statistics-table"|-! 參數名 || 必填 || 類型 || 描述|- | uname || true || String || 使用者名稱|- | pwd || true || String || 使用者密碼|- | 性別 || true || int || 使用者性別|- | address || true || String || 常居地|}== 返回結果 ===== 返回參數說明 ==={| class="mw-statistics-table"|-! 參數名 || 必填 || 類型 || 描述|- | code || true || int || 狀態代碼|}=== 返回JSON範例 === [{     "uid": 222332,     "name": "Ramos",     "sex": 1,     "star": 1,     "zidou": 1 "birthday": "2008-10-12",     "email_hash": " 650628530_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": "中國",         "province": "四川",         "city": "樂山"     },     "work_history": [{         "company_name": "千橡",         "description": "優秀的公司",         "start_date": "2008-7-7",         "end_date": ""     }],     "university_history": [{         "name": " 北京第二外國語學院",         "year": 2003,         "department": " 人文學院"     }],     "hs_history": [{         "name": " 黑龍江省實驗中學",         "grad_year": 1999     }], }]=== 錯誤碼釋義 ===詳細資料請查看[[bl-api-error|常見錯誤碼列表]]

 

自訂code:

== 描述 ==API介面文檔中自訂CODE對應的含義== 舉報類型 ==: 舉報類型碼:: 0    色情== 意見反饋 ==: 連絡方式類別:: 0    QQ== 訊息類型 ==: 訊息類型碼:: 0    登入訊息== Success Code ==: 成功狀態代碼:: 0    成功== 性別類別 ==: 性別對應碼:: 0    男:: 1    女== Star Code ==: 12星座:: 100    白羊座== Error Code ==: 常見錯誤:: 11    失敗或網路異常: 登入相關:: 21    使用者不存在

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.