-
Notifications
You must be signed in to change notification settings - Fork 29
feat: shorthand for readme-hosted APIs (@subdomain#uuid) #176
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
Conversation
Okay, I've thought about this a bit more, and there's some issues: Problems
SolutionSince OAS IDs are unique, what if we changed the syntax to always be Then, we should just never delete OAS specs ever (like, say, npm) so that we don't break people using APIs, even if the company churns or deletes it. |
I made it a bit more flexible. I think we should still use
Note: The endpoint I mention here isn't real! We'd need to create it. Which makes sense, it's kinda weird it doesn't exist already... Or, we can create a separate endpoint that doesn't use our official API? |
Talked offline over the weekend and to accomidate enterprise users, we're going to do a few things:
|
And just to clarify a bit for people reading this... the |
Been a while since there's been an update on this:
|
@Dashron @domharrington @gkoberger This is all ready for review now and up-to-date with the new API Registry endpoint that'll be live next week. |
🧰 What's being changed?
This updates the main URL entrypoint for pulling down OpenAPI definitions to support our upcoming API Registry shorthand accessors like:
@petstore/v1.0#n6kvf10vakpemvplx
@petstore#n6kvf10vakpemvplx
These accessors are remapped on-the-fly within our caching layer to pull down the API definition from our API registry API endpoint at https://dash.readme.io/api/v1/api-registry/:uuid`, where
:uuid
is the last part of the accessor:n6kvf10vakpemvplx
👨🔧 Usage
Before
After