nextcloud / nextcloud/cookbook

Create helper function to handle differnt input types for AJAX/REST based requests

Open
#516 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Backend enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.