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": "d8788124-bc01-4e97-ba38-362c2e74eb97", "TimePlayed": "2025-04-04T05:15:38.6387668+00:00", "GameID": "df4d3c67-3c3d-4422-ad0a-d7851e1c3217", "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>df4d3c67-3c3d-4422-ad0a-d7851e1c3217</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>2025-04-04T05:15:38.6387668+00:00</TimePlayed> <TotalTime>4.1</TotalTime> <UserzID>d8788124-bc01-4e97-ba38-362c2e74eb97</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.