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

Add version to the profile resource #59

Open
gorzala opened this issue Jun 23, 2024 · 0 comments
Open

Add version to the profile resource #59

gorzala opened this issue Jun 23, 2024 · 0 comments
Assignees

Comments

@gorzala
Copy link
Member

gorzala commented Jun 23, 2024

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!

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