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

Add JSON Schema files & Swagger endpoint #40041

Closed

Conversation

jfsiii
Copy link
Contributor

@jfsiii jfsiii commented Jul 1, 2019

refs #40034

Summary

Even this description is WIP

Notes

JSON Schema

JSON Schema for the two routes manager consumes from the registry. Generated from actual data on the registry, but can be edited by hand to make more accurate. Save the schemas to schemas/consumed directory.

npx quicktype -t IntegrationList --lang schema -o schemas/consumed/list.schema.json http://integrations-registry.app.elstc.co/list
npx quicktype -t Package --lang schema -o schemas/consumed/package.schema.json http://integrations-registry.app.elstc.co/package/docker-1.2.3 

Manager can generate / maintain these or get published from elsewhere (e.g. registry).

Swagger

gist of swagger.json output
Can feed that file to an online viewer like this one or we could install one. For now, just having the file is a big win
petstore swagger io__url=https___gist githubusercontent com_jfsiii_c16529e73ffa35eabd9427a8dc87b0a8_raw_60f3782c6993a4ded570b607ee1aead32d6653a0_swagger json(Pixel 2) (1)

@elasticmachine
Copy link
Contributor

💔 Build Failed

@jfsiii jfsiii force-pushed the feature-integrations-manager branch 2 times, most recently from d9a5acf to 363d3bf Compare October 28, 2019 16:35
@jen-huang jen-huang added the Team:Fleet Team label for Observability Data Collection Fleet team label Mar 26, 2020
@jfsiii jfsiii closed this Jun 15, 2020
@jfsiii
Copy link
Contributor Author

jfsiii commented Jun 15, 2020

Closing this PR isn't useful any longer. More specifically, we've moved away from the Hapi ecosystem dependencies this uses.

We did add a spec file in #68323 & the registry has a ticket for discussing OpenAPI elastic/package-registry#487

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants