POST api/CampusLife/AddNewServiceInformation
Request Information
URI Parameters
None.
Body Parameters
ServiceInputViewModelName | Description | Type | Additional information |
---|---|---|---|
Title | string |
None. |
|
Description | string |
None. |
|
ShortDescription | string |
None. |
|
ContactNumber | string |
None. |
|
string |
None. |
||
Address | string |
None. |
|
OpeningTime | date |
None. |
|
ClosingTime | date |
None. |
|
ImageUrl | string |
None. |
|
ServiceLinkUrl | string |
None. |
|
IsServiceCategoryNeedToBeCreated | boolean |
None. |
|
ServiceCategoryID | Collection of globally unique identifier |
None. |
|
ServiceCategory | ServiceCategoryViewModel |
None. |
|
GpsCoordinates | GpsCoordinate |
None. |
Request Formats
application/json, text/json
Sample:
{ "Title": "sample string 1", "Description": "sample string 2", "ShortDescription": "sample string 3", "ContactNumber": "sample string 4", "Email": "sample string 5", "Address": "sample string 6", "OpeningTime": "2024-05-14T01:36:44.2603952+02:00", "ClosingTime": "2024-05-14T01:36:44.2613909+02:00", "ImageUrl": "sample string 7", "ServiceLinkUrl": "sample string 8", "IsServiceCategoryNeedToBeCreated": true, "ServiceCategoryID": [ "69d532ff-9ee3-4110-a701-b0370d7d137c", "f2a55716-fa78-440c-9f53-5ea3b80972b9" ], "ServiceCategory": { "Title": "sample string 1", "Description": "sample string 2" }, "GpsCoordinates": { "ID": "33fe9b62-ee75-4745-8565-83177101d65b", "Longitude": 2.0, "Latitude": 3.0 } }
application/xml
Sample:
text/xml
Sample:
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.