POST api/Championship/AddChampionship

Request Information

URI Parameters

None.

Body Parameters

AddChampionshipCommandDto
NameDescriptionTypeAdditional information
ChampionshipName

string

None.

UserId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "ChampionshipName": "sample string 1",
  "UserId": "0588d5dd-0d0e-4fd2-ba4f-ff89764f1d5f"
}

application/xml, text/xml

Sample:
<AddChampionshipCommandDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Modules.ChampionshipModule.Model">
  <ChampionshipName>sample string 1</ChampionshipName>
  <UserId>0588d5dd-0d0e-4fd2-ba4f-ff89764f1d5f</UserId>
</AddChampionshipCommandDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AddChampionshipCommandDto'.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>