Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: API响应内容全局统一 #548

Open
iridescentGray opened this issue Jun 13, 2024 · 0 comments
Open

[Feature]: API响应内容全局统一 #548

iridescentGray opened this issue Jun 13, 2024 · 0 comments
Assignees

Comments

@iridescentGray
Copy link

Contact Details

[email protected]

feature is related to UI or API aspects?

API

What is your advice?

目前API调用成功、调用失败时,结构不统一,例如

  • 失败响应
{"message":"401 Unauthorized: "}
  • 成功响应
# 没有message和错误码
{
  "counter": {
    "project": 6
  },
  "facet": {},
  "numfound": 6,
  "page": 1
}

应该让成功的响应和失败的响应都有统一格式

Version

newest

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

No branches or pull requests

2 participants