Skip to content

Add version to the profile resource #59

@gorzala

Description

@gorzala

As of now the profile resource is structured as follows...

{
"id": "string",
"aboutMe": "string",
"size": 0,
"gender": "MALE",
"dancerName": "string",
"birthDate": "2024-06-23",
"ableTo": [
{
"dance": "string",
"level": "NO_EXPERIENCE",
"leading": "FOLLOW"
}
],
"wantsTo": [
{
"dance": "string",
"level": "NO_EXPERIENCE",
"leading": "FOLLOW"
}
],
"email": "string",
"zipCode": "string",
"city": "string",
"country": "GER",
"profileImageHash": "string"
}

add a property at the root of it and call it versionId. Let it be an integer.
When ever a profile is being created, let it be one, and increase the value by one on every change of the profile.
Invoking the put-endpoing without changing any value should not increase the versionId!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions