Skip to content

docs/swagger-documentations#46

Merged
mdawoud27 merged 5 commits into
mainfrom
docs/45/swagger
Apr 2, 2025
Merged

docs/swagger-documentations#46
mdawoud27 merged 5 commits into
mainfrom
docs/45/swagger

Conversation

@mdawoud27
Copy link
Copy Markdown
Contributor

PR Checklist (required)

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines.

  • Tests for the changes have been added (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation changes
  • Other... Please describe:

Related Issue

Closes #45

@mdawoud27 mdawoud27 added the documentation Improvements or additions to documentation label Apr 2, 2025
@mdawoud27 mdawoud27 requested a review from Copilot April 2, 2025 17:29
@mdawoud27 mdawoud27 self-assigned this Apr 2, 2025
@mdawoud27 mdawoud27 linked an issue Apr 2, 2025 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces comprehensive Swagger documentation for authentication endpoints along with integrating Swagger UI into the application. Key changes include:

  • Adding Swagger JSDocs for authentication routes in src/routes/auth.routes.js.
  • Integrating Swagger UI with Swagger JSDoc in src/index.js.
  • Updating API documentation comments in src/controllers/auth.controller.js to reflect Swagger specifications.

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
src/routes/auth.routes.js Added Swagger documentation for each auth endpoint
src/index.js Integrated Swagger UI and updated API documentation path
src/controllers/auth.controller.js Replaced previous inline comments with Swagger documentation blocks
Files not reviewed (1)
  • package.json: Language not supported
Comments suppressed due to low confidence (1)

src/routes/auth.routes.js:285

  • [nitpick] The endpoint for Google OAuth is defined as '/auth/google' while the other endpoints are prefixed with '/api/auth'. Consider unifying the endpoint prefixes for consistency.
// Google OAuth Login/Signup Endpoint (for mobile/SPA)

@mdawoud27 mdawoud27 merged commit 3c39bcb into main Apr 2, 2025
11 checks passed
@mdawoud27 mdawoud27 deleted the docs/45/swagger branch April 2, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS]: Swagger

2 participants