Add public and private profile endpoints#588
Open
Miner28 wants to merge 4 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds dedicated “public profile” and “private profile” API endpoints to the OpenAPI spec, along with new/updated schemas to model the data returned by these endpoints.
Changes:
- Added
/profile/{userId}and/profile/{userId}/privatepaths and wired them into the top-levelpaths.yaml. - Introduced new profile schemas (
PublicProfile,PrivateProfile,PrivateProfileActivity,ProfileRepresentedGroup) and corresponding response components. - Extended existing user-related schemas (
User,LimitedUserSearch,Badge) with additional profile/badge fields.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| openapi/components/schemas/User.yaml | Adds additional profile-related fields to the User schema. |
| openapi/components/schemas/PublicProfile.yaml | New schema describing the public profile payload. |
| openapi/components/schemas/ProfileRepresentedGroup.yaml | New schema for the represented group embedded in a profile. |
| openapi/components/schemas/PrivateProfileActivity.yaml | New schema for private activity/location fields. |
| openapi/components/schemas/PrivateProfile.yaml | New schema describing the authenticated user’s view of a profile. |
| openapi/components/schemas/LimitedUserSearch.yaml | Adds additional profile-related fields to search results. |
| openapi/components/schemas/Badge.yaml | Adds isQuantifiable flag to Badge schema. |
| openapi/components/responses/users/PublicProfileResponse.yaml | New response component referencing PublicProfile. |
| openapi/components/responses/users/PrivateProfileResponse.yaml | New response component referencing PrivateProfile. |
| openapi/components/paths/users.yaml | Adds the two new profile endpoints under the users tag. |
| openapi/components/paths.yaml | Registers the new profile routes in the global paths index. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.