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

feat(rfc): unity swagger.yml Users and Invites draft #293

Merged
merged 5 commits into from
Nov 11, 2020

Conversation

121watts
Copy link
Contributor

@121watts 121watts commented Nov 9, 2020

Closes: #287

This is a draft for the Users and Invites unification API client. If we can knock out a contract between Quartz and the ui then e-commerce and ui can start working in parallel 😸 .

  • Delete User
  • Get Users
  • Delete Invitation
  • Resend Invitation
  • Create Invitation

@121watts 121watts changed the title feat: unity swagger.yml Users and Invites draft feat(rfc): unity swagger.yml Users and Invites draft Nov 9, 2020
@subirjolly
Copy link
Contributor

I will give it a 👍 instead of approving. Don't consider myself qualified to approve, yet.

Copy link
Contributor

@randycoulman randycoulman left a 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.

Copy link
Contributor

@gunnaraasen gunnaraasen left a 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
Copy link
Contributor

@gunnaraasen gunnaraasen Nov 10, 2020

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.

Copy link
Contributor

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":
Copy link
Contributor

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?

Copy link
Contributor

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.

@121watts
Copy link
Contributor Author

@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 ui team to consume it.

@121watts 121watts merged commit 3943388 into master Nov 11, 2020
@121watts 121watts deleted the feat/unity-swagger branch November 11, 2020 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create draft of unity swagger for users page
4 participants