Skip to content

[Feature Request] 提供 API Only 模式,去除 UiContext 等内容以便构建更加纯净的 REST API #900

Description

@gtn1024

现在构建的所有接口全都带上了 UiContextUserContext,对于部分 REST 接口并无作用,在传输层面占用大量字节。

一种方案如下:

this.response.apiOnly = true
this.response.body = {
  // ...
}
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions