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": "2025-08-24T00:22:09.0584159+02:00", "ClosingTime": "2025-08-24T00:22:09.0584159+02:00", "ImageUrl": "sample string 7", "ServiceLinkUrl": "sample string 8", "IsServiceCategoryNeedToBeCreated": true, "ServiceCategoryID": [ "9e363524-9ab0-43de-a61e-81f296cc4f56", "f0102fa9-474d-4492-b750-07c2a84b8c7c" ], "ServiceCategory": { "Title": "sample string 1", "Description": "sample string 2" }, "GpsCoordinates": { "ID": "319e354e-666d-43cb-a072-689789116dfc", "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.