POST api/RestStop
Request Information
URI Parameters
None.
Body Parameters
RestStopName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
AddressId | integer |
None. |
|
NanId | globally unique identifier |
None. |
|
MapId | integer |
None. |
|
Name | string |
None. |
|
EmailAddress | string |
None. |
|
Telephone | string |
None. |
|
Mobile | string |
None. |
|
Description | string |
None. |
|
Added | date |
None. |
|
Updated | date |
None. |
|
Address | Address |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "AddressId": 1, "NanId": "10297a0a-b603-4cf1-b69b-a634f882f341", "MapId": 3, "Name": "sample string 4", "EmailAddress": "sample string 5", "Telephone": "sample string 6", "Mobile": "sample string 7", "Description": "sample string 8", "Added": "2025-01-09T08:01:31.3118614+00:00", "Updated": "2025-01-09T08:01:31.3118614+00:00", "Address": { "Id": 1, "Address1": "sample string 2", "Address2": "sample string 3", "Address3": "sample string 4", "Town": "sample string 5", "County": "sample string 6", "Postcode": "sample string 7", "What3Words": "sample string 8", "Latitude": 1.1, "Longitude": 1.1 } }
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="AddressId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="NanId" 10297a0a-b603-4cf1-b69b-a634f882f341 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="MapId" 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Name" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="EmailAddress" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Telephone" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Mobile" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Description" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Added" 2025-01-09T08:01:31.3118614+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Updated" 2025-01-09T08:01:31.3118614+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Address1" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Address2" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Address3" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Town" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.County" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Postcode" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.What3Words" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Latitude" 1.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Longitude" 1.1 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
RestStopName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
AddressId | integer |
None. |
|
NanId | globally unique identifier |
None. |
|
MapId | integer |
None. |
|
Name | string |
None. |
|
EmailAddress | string |
None. |
|
Telephone | string |
None. |
|
Mobile | string |
None. |
|
Description | string |
None. |
|
Added | date |
None. |
|
Updated | date |
None. |
|
Address | Address |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "AddressId": 1, "NanId": "2a3a170b-7f23-4395-8c4f-ddf1c2b4e2c1", "MapId": 3, "Name": "sample string 4", "EmailAddress": "sample string 5", "Telephone": "sample string 6", "Mobile": "sample string 7", "Description": "sample string 8", "Added": "2025-01-09T08:01:31.415874+00:00", "Updated": "2025-01-09T08:01:31.415874+00:00", "Address": { "Id": 1, "Address1": "sample string 2", "Address2": "sample string 3", "Address3": "sample string 4", "Town": "sample string 5", "County": "sample string 6", "Postcode": "sample string 7", "What3Words": "sample string 8", "Latitude": 1.1, "Longitude": 1.1 } }
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="AddressId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="NanId" 2a3a170b-7f23-4395-8c4f-ddf1c2b4e2c1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="MapId" 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Name" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="EmailAddress" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Telephone" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Mobile" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Description" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Added" 2025-01-09T08:01:31.4158740+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Updated" 2025-01-09T08:01:31.4158740+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Address1" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Address2" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Address3" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Town" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.County" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Postcode" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.What3Words" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Latitude" 1.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address.Longitude" 1.1 --MultipartDataMediaFormatterBoundary1q2w3e--