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

feat: return formatted data response when call api #8

Merged
merged 1 commit into from
Mar 10, 2024
Merged

Conversation

richardli1598
Copy link
Contributor

Fixes #none

Proposed Changes

  • feat: return formatted data response when call api
  • make dev launch script better

Release Note

Return formatted data response when call api

Signed-off-by: richardli1598 <opennaslab@gmail.com>
Copy link
Contributor

gitautomator bot commented Mar 10, 2024

Thanks to your contribution, the maintainers will review it as soon as they can!

@gitautomator gitautomator bot added the enhancement New feature or request label Mar 10, 2024
@richardli1598
Copy link
Contributor Author

@qingchoulove API已完成修改,现在返回示例如图:

{
  "code": 200,
  "message": "List app templates successfully",
  "data": [
    {
      "kind": "AppTemplate",
      "apiVersion": "app.openapp.dev/v1alpha1",
      "metadata": {
        "name": "alist",
        "uid": "75946392-f31e-430c-ae71-a8e869b82d65",
        "resourceVersion": "480",
        "generation": 1,
        "creationTimestamp": "2024-03-10T12:46:03Z",
        "managedFields": [
          {
            "manager": "controller",
            "operation": "Update",
            "apiVersion": "app.openapp.dev/v1alpha1",
            "time": "2024-03-10T12:46:03Z",
            "fieldsType": "FieldsV1",
            "fieldsV1": {
              "f:spec": {
                ".": {},
                "f:author": {},
                "f:description": {},
                "f:exposeType": {},
                "f:icon": {},
                "f:inputs": {},
                "f:title": {},
                "f:url": {}
              }
            }
          }
        ]
      },
      "spec": {
        "title": "Alist",
        "description": "A file list program that supports multiple storage, powered by Gin and Solidjs.",
        "author": "xhofe",
        "icon": "https://raw.githubusercontent.com/alist-org/logo/main/logo.svg",
        "url": "https://github.com/alist-org/alist",
        "inputs": "dataVolume:\n  description: \"The volume to store the data.\"\n  type: string\n  default: \"/root/openapp/alist\"\n  required: true\n",
        "exposeType": "Layer7"
      }
    }
  ]
}

/approve

@gitautomator gitautomator bot merged commit 7dab3d5 into main Mar 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant