Skip to content

接口_Paracraft用到的接口

onedou edited this page Jun 16, 2017 · 8 revisions

Paracraft用到的接口

keepwork

登录接口:/api/wiki/models/user/login
世界记录接口

  • 获取全部世界列表(GET):/api/mod/worldshare/models/worlds
  • 删除单个世界(DELETE):/api/mod/worldshare/models/worlds
  • 获取单个世界:/api/mod/worldshare/models/worlds/getOneOpus
  • 更新世界列表:/api/mod/worldshare/models/worlds/refresh

worlds.page中用到了user.page和site_data_source.page

gitlab

  • 仓库文件列表:projects/{_projectId}/repository/tree
  • 提交历史:projects/{_projectId}/repository/commits
  • 上传文件(PUT):projects/{_projectId}/repository/files
  • 更新文件(POST):projects/{_projectId}/repository/files
  • 删除文件(DELETE):projects/{_projectId}/repository/files
  • 获取文件(Get):projects/{_projectId}/repository/files
  • 获取文件(RAW):{dataSourceUsername}/{worldName}/raw/master
  • 获取所有Project:projects
  • 新增Project:projects
  • 删除Project(DELETE):projects/{_projectId}
Clone this wiki locally