# 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"
        }
        
    • Do it like this:
      • CompetitionDto:
        {
         "name": "xx"
        }
        
  • Nested entities

    • CompetitionList:
      [
          {
            "id": "xxx-x-xxx-xx",
            "name": "Competition XY",
            "competitionYear":  {
              "id": "xxx-xxx-x",
              "registrationDates": [
                {
                  "dateFrom": "20200819",       
                  "dateTo": "20200819"       
                }
              ]
            }
          }
      ]
      
Last Updated: 8/19/2020, 11:04:06 AM