POST api/Players
Request Information
URI Parameters
None.
Body Parameters
PlayerName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Strength | string |
None. |
|
MatchingAll | boolean |
None. |
|
ELO | integer |
None. |
|
ELODouble | integer |
None. |
|
Picture | Collection of byte |
None. |
|
UserId | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Strength": "sample string 1", "MatchingAll": true, "ELO": 3, "ELODouble": 4, "Picture": "QEA=", "UserId": "sample string 5" }
application/xml, text/xml
Sample:
<Player xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GRUBER.Tennis.App.Server.Models"> <ELO>3</ELO> <ELODouble>4</ELODouble> <Id>1</Id> <MatchingAll>true</MatchingAll> <Picture>QEA=</Picture> <Strength>sample string 1</Strength> <UserId>sample string 5</UserId> </Player>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PlayerName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Strength | string |
None. |
|
MatchingAll | boolean |
None. |
|
ELO | integer |
None. |
|
ELODouble | integer |
None. |
|
Picture | Collection of byte |
None. |
|
UserId | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "Strength": "sample string 1", "MatchingAll": true, "ELO": 3, "ELODouble": 4, "Picture": "QEA=", "UserId": "sample string 5" }
application/xml, text/xml
Sample:
<Player xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GRUBER.Tennis.App.Server.Models"> <ELO>3</ELO> <ELODouble>4</ELODouble> <Id>1</Id> <MatchingAll>true</MatchingAll> <Picture>QEA=</Picture> <Strength>sample string 1</Strength> <UserId>sample string 5</UserId> </Player>