POST api/Teams
Request Information
URI Parameters
None.
Body Parameters
Team| Name | Description | Type | Additional information |
|---|---|---|---|
| TeamID | integer |
None. |
|
| TeamNo | integer |
None. |
|
| Nickname | string |
String length: inclusive between 0 and 100 |
|
| Location | string |
String length: inclusive between 0 and 100 |
|
| RookieYear | integer |
None. |
|
| Motto | string |
String length: inclusive between 0 and 100 |
Request Formats
application/json, text/json
Sample:
{
"TeamID": 1,
"TeamNo": 2,
"Nickname": "sample string 3",
"Location": "sample string 4",
"RookieYear": 5,
"Motto": "sample string 6"
}
application/xml, text/xml
Sample:
<Team xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fires2024API.Models"> <Location>sample string 4</Location> <Motto>sample string 6</Motto> <Nickname>sample string 3</Nickname> <RookieYear>5</RookieYear> <TeamID>1</TeamID> <TeamNo>2</TeamNo> </Team>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Team| Name | Description | Type | Additional information |
|---|---|---|---|
| TeamID | integer |
None. |
|
| TeamNo | integer |
None. |
|
| Nickname | string |
String length: inclusive between 0 and 100 |
|
| Location | string |
String length: inclusive between 0 and 100 |
|
| RookieYear | integer |
None. |
|
| Motto | string |
String length: inclusive between 0 and 100 |
Response Formats
application/json, text/json
Sample:
{
"TeamID": 1,
"TeamNo": 2,
"Nickname": "sample string 3",
"Location": "sample string 4",
"RookieYear": 5,
"Motto": "sample string 6"
}
application/xml, text/xml
Sample:
<Team xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fires2024API.Models"> <Location>sample string 4</Location> <Motto>sample string 6</Motto> <Nickname>sample string 3</Nickname> <RookieYear>5</RookieYear> <TeamID>1</TeamID> <TeamNo>2</TeamNo> </Team>