nextcloud / nextcloud/cookbook
Create helper function to handle differnt input types for AJAX/REST based requests
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 641
- Forks
- 113
- Avg merge
- 21h 31m
- Merged PRs (30d)
- 26
Description
REST-based requests as called from the Vue component can arrive in different shapes. The Content-Type can e.g. be application/json or application/form-url-encoded. Depending on that the parsing in the backend needs to be adopted.
Here a general helper class should be generated to handle these cases well and in one central location.
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
Trace the Vue component's AJAX/REST calls into the backend and locate the existing request parsing paths. Compare handling for application/json and application/form-url-encoded inputs; done means both shapes are handled through one central helper.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100