POST api/RegistrarDispo
Asocia un dispositivo a un jugador
Request Information
URI Parameters
None.
Body Parameters
Dispositivo| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| ID_Jugador | integer |
None. |
|
| Token | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"ID_Jugador": 2,
"Token": "sample string 3"
}
text/html
Sample:
{"ID":1,"ID_Jugador":2,"Token":"sample string 3"}
application/xml, text/xml
Sample:
<Dispositivo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MaratonPackages_WS.Models"> <ID>1</ID> <ID_Jugador>2</ID_Jugador> <Token>sample string 3</Token> </Dispositivo>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Resul| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | string |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ID": "sample string 1",
"Message": "sample string 2"
}
text/html
Sample:
{"ID":"sample string 1","Message":"sample string 2"}
application/xml, text/xml
Sample:
<Resul xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MaratonPackages_WS.Models"> <ID>sample string 1</ID> <Message>sample string 2</Message> </Resul>