POST api/Cards
Request Information
URI Parameters
None.
Body Parameters
GameTransactionDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CardID | string |
None. |
|
| GameID | integer |
None. |
|
| Price | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"CardID": "sample string 2",
"GameID": 3,
"Price": 4.0
}
text/html
Sample:
{"Id":1,"CardID":"sample string 2","GameID":3,"Price":4.0}
application/xml, text/xml
Sample:
<GameTransactionDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gregsys.DTO"> <CardID>sample string 2</CardID> <GameID>3</GameID> <Id>1</Id> <Price>4</Price> </GameTransactionDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TransactionResault| Name | Description | Type | Additional information |
|---|---|---|---|
| isSuccess | boolean |
None. |
|
| message | string |
None. |
|
| Balance | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"Balance": 1.0,
"isSuccess": true,
"message": "sample string 2"
}
text/html
Sample:
{"Balance":1.0,"isSuccess":true,"message":"sample string 2"}
application/xml, text/xml
Sample:
<TransactionResault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gregsys.WebApi.Models"> <isSuccess>true</isSuccess> <message>sample string 2</message> <Balance>1</Balance> </TransactionResault>