Skip to content

Provide PATCH API call for scaffolded (users) API #112

@NoTuxNoBux

Description

@NoTuxNoBux

When scaffolding users, you get a bunch of common API calls, but PATCH seems to be missing:

afbeelding

For my use case specifically, I'm extending users to support local user management in a first phase of a project, so fields such as the (new) plain text password cannot be repeated every time, only when it needs to be updated, at which point it is hashed and permanently discarded.

Ideally a PATCH API call would exist similar to the PUT one that allows omitting fields if they don't need to be changed, and fields that are explicitly set (null` or otherwise) will only be written to.

This might also apply to scaffolded API calls for entities in general, but I noticed it specifically for users.

(I haven't tested yet if PUT supports this behaviour, but even if it does, typically both are separate actions in RESTful APIs which shouldn't be conflated.)

Not a biggy, as it is straightforward to add, but just wanted to mention it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions