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

[Request]获取manifest文件的请求是否可以带参数,这样可以根据参数返回不同的manifest #5163

Open
lucasfen opened this issue Dec 24, 2024 · 8 comments
Labels
🤔 Need Reproduce Further information is requested | 需要更多信息复现

Comments

@lucasfen
Copy link

🥰 需求描述

希望能动态生成manifest文件。

🧐 解决方案

获取manifest文件的请求是否可以带参数,这样可以根据参数生成返回不同的manifest

📝 补充信息

No response

@lucasfen lucasfen added the 🌠 Feature Request New feature or request | 特性与建议 label Dec 24, 2024
@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Description of requirements

I hope that the manifest file can be generated dynamically.

🧐 Solution

Whether the request to obtain the manifest file can take parameters, so that different manifests can be generated and returned based on the parameters.

📝 Supplementary information

No response

@lobehubbot
Copy link
Member

👀 @lucasfen

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@arvinxx
Copy link
Contributor

arvinxx commented Dec 24, 2024

没懂

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Don't understand

@arvinxx arvinxx added 🤔 Need Reproduce Further information is requested | 需要更多信息复现 and removed 🌠 Feature Request New feature or request | 特性与建议 labels Dec 24, 2024
@lucasfen
Copy link
Author

举个例子:我有插件A和插件B,对应有manifest文件ma和mb,以及对应的获取manifest文件的接口a和接口b。当前情况是每新增一个插件我就需要新增一个获取manifest文件的接口。我期望的是所有插件共用同一个获取manifest文件的接口,根据接口的请求参数的不同,来返回不同的manifest文件

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


For example: I have plug-in A and plug-in B, corresponding manifest files ma and mb, and corresponding interface a and interface b for obtaining the manifest file. The current situation is that every time I add a new plug-in, I need to add a new interface to obtain the manifest file. What I expect is that all plug-ins share the same interface for obtaining manifest files, and return different manifest files based on the different request parameters of the interface.

@arvinxx
Copy link
Contributor

arvinxx commented Dec 24, 2024

那你是不是可以在插件的市场里修改 manifest.json 的 url ,自己改成带 query 的?

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Then can you modify the url of manifest.json in the plug-in market and change it to include query yourself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 Need Reproduce Further information is requested | 需要更多信息复现
Projects
None yet
Development

No branches or pull requests

3 participants