POST api/Astronaut
Request Information
URI Parameters
None.
Body Parameters
AstronautName | Description | Type | Additional information |
---|---|---|---|
UserzID | globally unique identifier |
Required |
|
TimePlayed | date |
Required |
|
GameID | globally unique identifier |
None. |
|
TotalTime | decimal number |
Required |
|
Score | decimal number |
Required |
|
GameMode | string |
Required |
|
LevelNumber | integer |
Required |
|
NumberOfLives | integer |
Required |
|
WaveNumber | integer |
Required |
|
Hand | AstronautHandType |
Required |
|
MaxLevel | integer |
Required |
|
CorrectHit | integer |
Required |
|
WrongHit | integer |
Required |
|
Success | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{ "UserzID": "47c887cb-9f12-43c7-9c46-eb9ee7a837e5", "TimePlayed": "2024-12-06T15:38:14.777441+00:00", "GameID": "aa31a7da-7a3d-4a46-9b03-575c6f0c9b75", "TotalTime": 4.1, "Score": 5.1, "GameMode": "sample string 6", "LevelNumber": 7, "NumberOfLives": 8, "WaveNumber": 9, "Hand": 0, "MaxLevel": 10, "CorrectHit": 11, "WrongHit": 12, "Success": true }
application/xml, text/xml
Sample:
<AstronautController.Astronaut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameAPIV3.Controllers"> <CorrectHit>11</CorrectHit> <GameID>aa31a7da-7a3d-4a46-9b03-575c6f0c9b75</GameID> <GameMode>sample string 6</GameMode> <Hand>RIGHT</Hand> <LevelNumber>7</LevelNumber> <MaxLevel>10</MaxLevel> <NumberOfLives>8</NumberOfLives> <Score>5.1</Score> <Success>true</Success> <TimePlayed>2024-12-06T15:38:14.777441+00:00</TimePlayed> <TotalTime>4.1</TotalTime> <UserzID>47c887cb-9f12-43c7-9c46-eb9ee7a837e5</UserzID> <WaveNumber>9</WaveNumber> <WrongHit>12</WrongHit> </AstronautController.Astronaut>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.