Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch/Update response contains fields not existing in the request (with the false value of modification marker). #27

Open
gopherus opened this issue Jun 9, 2023 · 0 comments
Assignees

Comments

@gopherus
Copy link
Collaborator

gopherus commented Jun 9, 2023

Patch/update for existing entity

Request:
PATCH /v1/api/dev/actor HTTP/1.1
Host: 127.0.0.1:8080
Content-Type: application/json
Content-Length: 164

{
    "Entity": [
        {
            "actorId": 453,
            "lastName": "Zimmerman",
            "lastUpdate": "2020-06-08T21:13:38+02:00"
        }
    ]
}

Response:

[
    {
        "actorId": 453,
        "firstName": "",
        "lastName": "ZIMMERMAN",
        "lastUpdate": "2020-06-08T21:13:38+02:00"
    }
]

Body contains field "firstName".

Enitity in DB:

actor_id first_name last_name last_update
453@JOHN@ZIMMERMAN@2020-06-08 19:13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants