-
Notifications
You must be signed in to change notification settings - Fork 44
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
feat(rfc): unity swagger.yml Users and Invites draft #293
Conversation
I will give it a 👍 instead of approving. Don't consider myself qualified to approve, yet. |
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.
Overall, this looks about right, though I haven't had time to do a detailed comparison against what's actually implemented in Quartz right now, so we might need a couple of minor changes later.
This looks like what used to live in the influxdb swagger. It looks like most of that was removed by influxdata/influxdb#19102, but there's still some cruft left over there that we might want to remove. I also noticed that the above-mentioned PR removed the /orgs/{orgID}/owners/{userID}
endpoint, but it hasn't been added back in this PR. However, I think that might be an error in the previous PR because I think that's still a valid endpoint in the Influx API.
My only other thought is that I think this Swagger spec should ultimately live in the Quartz repo because that's where it will be implemented, but I realize that makes it harder to generate code from it. If it stays here, I'd want to be sure that we're OK with publishing this stuff in an OSS repo.
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.
Thanks @121watts for taking a first run at this spec.
Since this will be an API primarily for UI use in InfluxDB Cloud, I agree with Randy's suggestion this spec should live in the quartz repo until we're ready for the UI API routes to be publicly consumable.
title: Unity API Service | ||
version: 0.1.0 | ||
servers: | ||
- url: /unity/v2 # to be determined |
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.
Maybe simply /ui/v1
. Not sure if it's necessary to synchronize with the OSS API version if this quartz UI API will be rapidly iterated on.
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.
When this moves to Quartz, it will be /api/v2private
.
servers: | ||
- url: /unity/v2 # to be determined | ||
paths: | ||
"/orgs/{orgID}/invites": |
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.
Should there also be a get:
method to fetch the list of invites?
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.
The list of invites comes back when fetching the user list: you get back both users and invites in that response.
@gunnaraasen before this code is live we can horse trade and decide where stuff should live. for now, im going to keep it here as this is the most convenient place for the |
Closes: #287
This is a draft for the
Users
andInvites
unification API client. If we can knock out a contract between Quartz and theui
then e-commerce and ui can start working in parallel 😸 .