POST api/GeneralSettings/Add/New

Request Information

URI Parameters

None.

Body Parameters

GeneralSettingBindingModel
NameDescriptionTypeAdditional information
Name

SettingName

Required

ValueType

SettingValueType

Required

Value

string

Required

String length: inclusive between 0 and 512

Request Formats

application/json, text/json

Sample:
{
  "Name": 1,
  "ValueType": 1,
  "Value": "sample string 1"
}

application/xml, text/xml

Sample:
<GeneralSettingBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
  <Name>Xendit</Name>
  <Value>sample string 1</Value>
  <ValueType>Secret_key</ValueType>
</GeneralSettingBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GeneralSettingViewModel
NameDescriptionTypeAdditional information
Name

string

None.

ValueType

string

None.

Value

string

Required

String length: inclusive between 0 and 512

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "ValueType": "sample string 2",
  "Value": "sample string 3"
}

application/xml, text/xml

Sample:
<GeneralSettingViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
  <Name>sample string 1</Name>
  <Value>sample string 3</Value>
  <ValueType>sample string 2</ValueType>
</GeneralSettingViewModel>