# Api guidelines
# Tips
Do not prefix entity properties with the name of own entity name
- Exception is while joined entity has same base name (Competition; CompetitionYear)
- Do not do it like this
- CompetitionDto:
{ "competitionName": "xx" }
- CompetitionDto:
- Do it like this:
- CompetitionDto:
{ "name": "xx" }
- CompetitionDto:
Nested entities
- CompetitionList:
[ { "id": "xxx-x-xxx-xx", "name": "Competition XY", "competitionYear": { "id": "xxx-xxx-x", "registrationDates": [ { "dateFrom": "20200819", "dateTo": "20200819" } ] } } ]
- CompetitionList: