POST api/Coach
Request Information
URI Parameters
None.
Body Parameters
SessionRequestParams| Name | Description | Type | Additional information |
|---|---|---|---|
| day | string |
None. |
|
| phone | string |
None. |
|
| name | string |
None. |
|
| shipID | globally unique identifier |
None. |
|
| coachID | globally unique identifier |
None. |
|
| ridersQty | integer |
None. |
|
| beginnersQty | integer |
None. |
|
| sessionDuration | integer |
None. |
|
| startDate | string |
None. |
|
| comment | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"day": "sample string 1",
"phone": "sample string 2",
"name": "sample string 3",
"shipID": "86c53c9c-f99c-491f-b5b6-81cde920b076",
"coachID": "5b4ca576-4881-4598-9a39-481c84bf02ad",
"ridersQty": 5,
"beginnersQty": 6,
"sessionDuration": 7,
"startDate": "sample string 8",
"comment": "sample string 9"
}
application/xml, text/xml
Sample:
<SessionRequestParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SurfBooking.Models"> <comment>sample string 9</comment> <day>sample string 1</day> <instructorId>5b4ca576-4881-4598-9a39-481c84bf02ad</instructorId> <name>sample string 3</name> <phone>sample string 2</phone> <ridersQty>5</ridersQty> <shipId>86c53c9c-f99c-491f-b5b6-81cde920b076</shipId> <startDate>sample string 8</startDate> <startupQty>6</startupQty> <totalDuration>7</totalDuration> </SessionRequestParams>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
CoachResponseJson| Name | Description | Type | Additional information |
|---|---|---|---|
| coaches | Collection of Coach |
None. |
Response Formats
application/json, text/json
Sample:
{
"coaches": [
{
"id": "1b1f9725-f6c2-4fe4-ab1d-7e6214c75b8b",
"name": "sample string 2"
},
{
"id": "1b1f9725-f6c2-4fe4-ab1d-7e6214c75b8b",
"name": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<CoachResponseJson xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SurfBooking.Models">
<coaches>
<Coach>
<id>1b1f9725-f6c2-4fe4-ab1d-7e6214c75b8b</id>
<name>sample string 2</name>
</Coach>
<Coach>
<id>1b1f9725-f6c2-4fe4-ab1d-7e6214c75b8b</id>
<name>sample string 2</name>
</Coach>
</coaches>
</CoachResponseJson>