-
Notifications
You must be signed in to change notification settings - Fork 13.3k
feat(rest): migrate /api/v1/me to OpenAPI endpoint definition #39221
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
Open
Yashika-code
wants to merge
14
commits into
RocketChat:develop
Choose a base branch
from
Yashika-code:develop
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+35
−193
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
bef789d
feat(rest): migrate /api/v1/me to OpenAPI endpoint definition
Yashika-code 0aa1367
fix(rest): correct closing delimiter in me endpoint migration
Yashika-code 8f00741
Update misc.ts
Yashika-code 4277bb2
update /api/v1/me endpoint with AJV schema and TypeScript interface
Yashika-code 310c2e4
'@rocket.chat/rest-typings': minor
Yashika-code 5c08dc5
refactor(rest-typings): remove old /v1/me endpoint typing in favor of…
Yashika-code c0e8660
Update misc.ts
Yashika-code 47e28e2
Update me.ts
Yashika-code 68b3b51
Update path of importing file
Yashika-code 4b66abf
Remove the MeEndPoints imports
Yashika-code 253b59c
Update misc.ts
Yashika-code d8b3558
Update Ajv.ts
Yashika-code 9f3ec13
Delete packages/rest-typings/src/v1/me.ts
Yashika-code 4140f45
fix(api): update /api/v1/me 200 response schema to include success en…
Yashika-code File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@rocket.chat/meteor': minor | ||
| '@rocket.chat/rest-typings': minor | ||
| --- | ||
| Updated /api/v1/me endpoint with AJV schema and TypeScript interface, removed old @openapi block, and cleaned up rest-typings import paths |
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
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
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
This file was deleted.
Oops, something went wrong.
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.
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.
We aren't just removing this; we also need to move the query schema to apps/meteor/app/api/server/v1/misc.ts. I've extracted these from this file. it wasn't located there, but you’ll need to figure it out how
additionally, here in the MeEndpoints type, the params property defines the required query parameters (for GET requests) or the request body (for POST requests). The type following the => arrow specifies exactly what the /v1/me endpoint returns. We use these definitions as our primary reference; the actual API implementation must be strictly matched to return these exact fields