Skip to content

[DOCS] Fix API reference documentation vs backend implementation mismatch#45

Merged
hasanraiyan merged 1 commit intomainfrom
fix/api-docs-mismatch-9817437919961773783
May 4, 2026
Merged

[DOCS] Fix API reference documentation vs backend implementation mismatch#45
hasanraiyan merged 1 commit intomainfrom
fix/api-docs-mismatch-9817437919961773783

Conversation

@hasanraiyan
Copy link
Copy Markdown
Collaborator

This PR fixes the discrepancy between the API documentation and the backend implementation. The primary issue was the documentation of a non-existent GET /questions/search endpoint, which has been removed and replaced with appropriate query parameters on the base GET /questions endpoint. Additionally, a comprehensive audit of all API reference files was performed, updating parameters, path segments (slug vs ID), and adding missing status update endpoints to ensure full parity with the backend/src/routes implementation.

Fixes #44


PR created automatically by Jules for task 9817437919961773783 started by @hasanraiyan

- Removed non-existent `GET /questions/search` endpoint documentation.
- Updated `GET /questions` with supported query parameters: `type`, `difficulty`, `isVerified`, `page`, and `limit`.
- Updated `Papers API` documentation with correct query parameters (`examYear`, `examType`) and added `PATCH /papers/:id/status`.
- Removed unsupported `type` parameter from `Search API`.
- Updated `Syllabus API` with correct hierarchical routes and question mapping endpoints.
- Updated `Users API` and `Subjects API` to reflect slug-based lookups and current route definitions.

This alignment ensures that developers and AI agents have an accurate reference for the platform's REST API.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Copilot AI review requested due to automatic review settings May 4, 2026 17:47
@vercel
Copy link
Copy Markdown

vercel Bot commented May 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pyqdeck-core Ready Ready Preview, Comment May 4, 2026 5:48pm

@google-labs-jules google-labs-jules Bot mentioned this pull request May 4, 2026
@github-actions github-actions Bot added the size/m label May 4, 2026
@mintlify
Copy link
Copy Markdown

mintlify Bot commented May 4, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
pyqdeck 🟢 Ready View Preview May 4, 2026, 5:48 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@hasanraiyan hasanraiyan merged commit e677d91 into main May 4, 2026
8 of 10 checks passed
@hasanraiyan hasanraiyan review requested due to automatic review settings May 4, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs fix

1 participant