dify icon indicating copy to clipboard operation
dify copied to clipboard

feat:add 'name' field return

Open leslie2046 opened this issue 1 year ago • 6 comments

Description

Add a new /info API ,name of app returning for api-user recognize that if the correct app has been using 图片

Fixes # (issue)

Type of Change

Please delete options that are not relevant.

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change requires a documentation update, included: Dify Document
  • [ ] Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement
  • [ ] Dependency upgrade

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • [ ] TODO

Suggested Checklist:

  • [x] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] My changes generate no new warnings
  • [ ] I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
  • [ ] optional I have made corresponding changes to the documentation
  • [ ] optional I have added tests that prove my fix is effective or that my feature works
  • [ ] optional New and existing unit tests pass locally with my changes

leslie2046 avatar Apr 08 '24 07:04 leslie2046

Why do we still need to return the name parameter if the API Key is deeply bound with the App?

takatost avatar Apr 09 '24 04:04 takatost

Why do we still need to return the name parameter if the API Key is deeply bound with the App?

On our robot management platform, we will set the apikey of a dify app to some robots, and the apikey of another app to other robots. It is also possible that a robot may need to switch to a different apikey to demonstrate different apps after a period of time. We need to confirm the success and correctness of the app name by echoing it after setting

leslie2046 avatar Apr 09 '24 06:04 leslie2046

I think we should provide a separate /info API to fetch app details.

takatost avatar Apr 09 '24 07:04 takatost

could i add a new info api?return name ,description?

leslie2046 avatar Apr 09 '24 07:04 leslie2046

could i add a new info api?return name ,description?

image I think you can add it here.

crazywoola avatar Apr 09 '24 10:04 crazywoola

could i add a new info api?return name ,description?

Sure, feel free.

takatost avatar Apr 09 '24 11:04 takatost