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

Generate Swagger Files based on Device Profiles #1165

Open
ajcasagrande opened this issue May 23, 2022 · 0 comments
Open

Generate Swagger Files based on Device Profiles #1165

ajcasagrande opened this issue May 23, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ajcasagrande
Copy link
Contributor

🚀 Feature Request

Relevant Package [REQUIRED]

device-sdk or core-command

Description [REQUIRED]

I think it should be possible to generate a swagger file (OpenAPI spec) for the commands (and resources) listed in a device profile. It may not be able to know all of the options (such as the base64 encoded jsonObject for device-onvif-camera's GET calls), but would provide a way to let users explore the commands available for a specific device. This would be intended as a documentation enhancer for device services.

Describe the solution you'd like

Generate a swagger file for each device profile of a device service. In the future the device profile spec could even be amended to include helper or hint fields to enhance the generation process and provide better output swagger files.

Describe alternatives you've considered

  • Writing by hand
  • EdgeX-UI provides something similar I believe in the form of the command creation (afaik)
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

No branches or pull requests

1 participant