parse-community / parse-community/parse-server
Override default functionality for Parse Server express routes
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 21.4k
- Forks
- 4.8k
- Avg merge
- 7h 45m
- Merged PRs (30d)
- 11
Description
New Feature / Enhancement Checklist
- [ x ] I am not disclosing a vulnerability.
- [ x ] I am not just asking a question.
- [ x ] I have searched through existing issues.
Current Limitation
Currently, it's not possible to modify the default routing behaviour for Parse Server. For example, we want to be able to customise our login to be handled outside of Parse's own handler and then respond to the client seamlessly as if they are interacting with Parse. At present, there isn't a clean way to achieve this.
Feature / Enhancement Description
An interface to override specific routes with custom functionality.
Example Use Case
We want to override Parse's default login functionality and implement my own that reaches out to a third party API. Once the response is returned from said API, it would pass down the correct response to satisfy the client without any code changes required client-side.
Alternatives / Workarounds
Iterating over mounted routes and overriding the express handler function.
3rd Party References
No
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how Parse Server mounts its Express routes and how the current handlers are selected. Define an interface for overriding specific routes, using the login example as the target behavior. Done should allow a custom login implementation to return a response that Parse clients can consume without client-side changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- express, javascript, node.js
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100