Skip to content

GeekApk API v1b 1.0

duangsuse edited this page Feb 5, 2019 · 5 revisions

All APIs for GeekApk v1.0b except apiHint

Server Info API section

serverDetail() -> object:string = /serverDetail

serverVersion() -> plain = /serverVersion

serverDescription() -> plain = /serverDescription

serverBoot() -> datetime = /serverBoot

Server ADMIN api section

POST@createUser(username:String) -> object:GeekUser = /admin/makeUser

PUT@resetSharedHash(uid-path:UserId, shash:String?) -> plain = /admin/resetMetaHash/{uid}

DELETE@deleteUser(uid-path:UserId) -> object:GeekUser = /admin/dropUser/{uid}

PUT@flagUser(uid-path:UserId, flag:Int) -> object:GeekUser = /admin/flagUser/{uid}

POST@createCategory(name:String) -> object:Category = /admin/makeCategory

PUT@renameCategory(id-path:CategoryId, name:String) -> object:Category = /admin/nameCategory/{id}

DELETE@deleteCategory(id-path:CategoryId) -> object:Category = /admin/dropCategory/{id}

DELETE@deleteApp(aid-path:AppId) -> object:App = /admin/dropApp/{aid}

PUT@transferAppCategory(aid-path:AppId, cid:CategoryId) -> [$aid:number, $old:number, $new:number] = /admin/moveApp/{aid}

PUT@transferAppOwner(aid-path:AppId, uid:UserId) -> [$aid:number, $old:number, $new:number] = /admin/transferApp/{aid}

DELETE@deleteAppUpdate(aid-path:AppId, rev-path:Int) -> object:AppUpdate = /admin/dropAppUpdate/{aid}/{rev}

DELETE@deleteComment(cid-path:CommentId) -> [$cid:number, $deletedSubComments:number] = /admin/dropComment/{cid}

GeekApk Categories section

categoryList() -> array:Category = category/all

categoryName(id-path:CategoryId) -> plain = category/{id}

GeekApk Users section

readUser(id-path:UserId) -> object:GeekUser = user/{id}

updateUser(id-path:UserId, prop:String, value-body:String) -> object:string = user/{id}

resetHash(id-path:UserId, shash:String, hash:String) -> object:string = user/{id}/hash

checkHash(id-path:UserId, hash:String) -> object:string = user/{id}/checkHash

listUser(sort:String?, sliceFrom:UserSize?, sliceTo:UserSize?) -> array:GeekUser = user/all

listMetaUser(sort:String?, sliceFrom:UserSize?, sliceTo:UserSize?) -> array:GeekUser = user/allHasMetaApp

searchUser(type:String?{username,nickname,bio}, kw-path:String, sort:String?{created,followers}) -> array:GeekUser = user/search/{kw}

updateOnlineTime(id-path:UserId) = user/{id}/online

API Specs

v1b 1.0

Clone this wiki locally