Qi-API 接口开放平台提供管理员预览账号啦!!!

预览账号只能访问管理员能访问的界面,并不是真正的管理员权限哦!因为内容包含支付相关,不能开放真正的管理员权限。仅对星球开放!!

这里回应一下大家的提问:原帖 豪华版API接口开放平台来了!! 附上线部署流程 github action 自动化部署!!耗时近一个月API开放平台正式对外开放了!!!

网站导航 🧭

Qi-API 接口开放平台 🔗 :https://api.qimuu.icu/nJaixWyb

Qi-API 后端 🏘️ :https://github.com/qimu666/qi-api

Qi-API 前端 🏘️ :https://github.com/qimu666/qi-api-frontend

Qi-API-SDK🛠 https://github.com/qimu666/qi-api-sdk

Qi-API-DOC 开发者文档 📖 : https://doc.qimuu.icu/

Qi-API-DOC 开发者文档源码 📖 : https://github.com/qimu666/qi-api-doc

Qi-API-SDK-demo ✔️ : https://github.com/qimu666/qi-api-sdk-demo

部署上线流程:API 接口开放平台部署流程


可不可以提供一个管理员账号和普通用户账号,

可以的:

  1. 普通账号的话直接在Qi-API 接口开放平台 🔗 :https://api.qimuu.icu/nJaixWyb注册即可
  2. 管理员预览账号:admin/12345678

这个开发者文档怎么玩,想自制一个。

使用VuePress (vuejs.org)即可快速生成一个静态网站,只需要简单配置,修改内容即可。

可以参考我的Qi-API-DOC 开发者文档源码 📖 : https://github.com/qimu666/qi-api-doc


有没有笔记?

只能给大家说声抱歉了,因为我是没有跟着视频做的,我是看完全部视频之后才做的,由于我之前很早看过一遍,就简单过了一下视频内容。凭借自己的记忆和想法来完成这个项目。我认为有的思路才能有更多的收获!!

我给大家提供了部署上线流程:API 接口开放平台部署流程


怎么上传发布接口?

首先上传接口目前是不支持用户直接上传。如果想提供接口可以在sdk项目中提pr,审核通过后接入接口平台即可,使用SDK可以快速开发新接口。只需要继简单几步就可以快速添加一个新的接口,并且规范返回。


配置完使用示例

RandomWallpaperResponse resultResponse = apiService.getRandomWallpaper(qiApiClient, randomWallpaperRequest);
RandomWallpaperResponse randomWallpaper = apiService.getRandomWallpaper(randomWallpaperRequest);

接入示例:

配置请求:

@Accessors(chain = true)
public class RandomWallpaperRequest extends BaseRequest<RandomWallpaperParams, RandomWallpaperResponse> {
@Override
public String getPath() {
return "/randomWallpaper";
}
/**
* 获取响应类
*
* @return {@link Class}<{@link ResultResponse}>
*/
@Override
public Class<RandomWallpaperResponse> getResponseClass() {
return RandomWallpaperResponse.class;
}

@Override
public String getMethod() {
return RequestMethodEnum.GET.getValue();
}
}

配置请求参数:

@Data
@Accessors(chain = true)
public class RandomWallpaperParams implements Serializable {
private static final long serialVersionUID = 3815188540434269370L;
private String lx;
private String method;
}

配置响应

@Data
@EqualsAndHashCode(callSuper = true)
public class RandomWallpaperResponse extends ResultResponse {
private static final long serialVersionUID = -6467312483425078539L;
private String imgurl;
}

添加接口

RandomWallpaperResponse getRandomWallpaper(RandomWallpaperRequest request) throws ApiException;
RandomWallpaperResponse getRandomWallpaper(QiApiClient qiApiClient, RandomWallpaperRequest request) throws ApiException;

实现接口,由于已经封装好了请求头什么的,添加接口只需要传入request相应的参数即可

@Override
public RandomWallpaperResponse getRandomWallpaper(RandomWallpaperRequest request) throws ApiException {
return request(request);
}
@Override
public RandomWallpaperResponse getRandomWallpaper(QiApiClient qiApiClient, RandomWallpaperRequest request) throws ApiException {
return request(qiApiClient, request);
}



0个评论
点击登录,快来和大家讨论吧~
表情
图片
暂无评论
柒木
下载 APP