-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[PRFC] API Docs for the whole backend #17535
Conversation
Changed Packages
|
Thanks for the contribution! |
14af47d
to
1fc3453
Compare
Uffizzi Ephemeral Environment
|
1fc3453
to
bdadb3d
Compare
842dfb0
to
0b09425
Compare
cfceb19
to
592ce91
Compare
app-config.yaml
Outdated
@@ -47,6 +47,7 @@ backend: | |||
allow: | |||
- host: example.com | |||
- host: '*.mozilla.org' | |||
- host: localhost:7007 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Catalog imports don't support reading the internal OpenAPI spec without this.
518ada2
to
81b7ee6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking forward to use Backstage to document our plugin APIs 🎉 , thanks for contributing!
The changes to search-backend
looks great to me, I've added only a curiosity question below. I'll leave the registry plugin review to @backstage/maintainers , I think they'll have great inputs to share!
This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution! |
Signed-off-by: Aramis <sennyeyaramis@gmail.com> Signed-off-by: Aramis Sennyey <aramiss@spotify.com>
Signed-off-by: Aramis Sennyey <aramiss@spotify.com>
Signed-off-by: Aramis Sennyey <aramiss@spotify.com>
Signed-off-by: Aramis Sennyey <aramiss@spotify.com>
Signed-off-by: Aramis Sennyey <aramiss@spotify.com>
Signed-off-by: Aramis Sennyey <aramiss@spotify.com>
86ccc1a
to
b0562a1
Compare
Signed-off-by: Aramis Sennyey <aramiss@spotify.com>
Signed-off-by: Aramis Sennyey <aramiss@spotify.com>
Signed-off-by: Aramis Sennyey <aramiss@spotify.com>
Need a maintainer @Rugvip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, another round and hopefully almost there 😁
Sorry about the silence on this one
'backstage.io/managed-by-location': | ||
'internal-package:@backstage/plugin-catalog-backend-module-openapi-spec', | ||
'backstage.io/managed-by-origin-location': | ||
'internal-package:@backstage/plugin-catalog-backend-module-openapi-spec', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ANNOTATION_LOCATION
and ANNOTATION_ORIGIN_LOCATION
for these.
I take it this entire structure is fairly experimental and likely to evolve? Otherwise I'm thinking it would make sense to make it possible to configure the name and perhaps some other fields in the entity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, for now I'd like to keep the extensability small as this is all very experimental
Signed-off-by: Aramis Sennyey <aramiss@spotify.com>
@Rugvip I updated per your comments. Assuming this builds, it should be ready for another round. |
Signed-off-by: Aramis Sennyey <aramiss@spotify.com>
…schema Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Thank you for contributing to Backstage! The changes in this pull request will be part of the |
Hey, I just made a Pull Request!
Summary
Support serving your Backstage instance's API docs in your Backstage instance's catalog. Inception 🤯 .
Caveats
Testing
Since the Uffizi instance isn't set up to serve the
backend-next
package, to see the full benefits of this package, you'll have to test locally.cd packages/backend-next && yarn start
oryarn --cwd packages/backend-next start
and then issue a GET request to${your_base_url}/api/api-registry.openapi/openapi.json
(still a WIP on the URL). You should see all registered OpenAPI specs under their correct prefixes. Currently, this is just the catalog API.✔️ Checklist
Signed-off-by
line in the message. (more info)