POST api/shopregistration/registergaragefacility

Request Information

URI Parameters

None.

Body Parameters

GarageServiceInfo
NameDescriptionTypeAdditional information
ShopId

integer

None.

ServiceId

integer

None.

FacilityListInfo

Collection of GarageFacilityInfo

None.

Request Formats

application/json, text/json

Sample:
{
  "ShopId": 1,
  "ServiceId": 1,
  "FacilityListInfo": [
    {
      "FacilityId": 1,
      "CategoryPrice": [
        {
          "BikeCategoryId": 1,
          "Price": 1.0,
          "SalePrice": 1.0
        },
        {
          "BikeCategoryId": 1,
          "Price": 1.0,
          "SalePrice": 1.0
        }
      ]
    },
    {
      "FacilityId": 1,
      "CategoryPrice": [
        {
          "BikeCategoryId": 1,
          "Price": 1.0,
          "SalePrice": 1.0
        },
        {
          "BikeCategoryId": 1,
          "Price": 1.0,
          "SalePrice": 1.0
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<GarageServiceInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopRegistrationPostLibrary.GarageRegistration">
  <FacilityListInfo>
    <GarageFacilityInfo>
      <CategoryPrice>
        <BikeCategoryPrice>
          <BikeCategoryId>1</BikeCategoryId>
          <Price>1</Price>
          <SalePrice>1</SalePrice>
        </BikeCategoryPrice>
        <BikeCategoryPrice>
          <BikeCategoryId>1</BikeCategoryId>
          <Price>1</Price>
          <SalePrice>1</SalePrice>
        </BikeCategoryPrice>
      </CategoryPrice>
      <FacilityId>1</FacilityId>
    </GarageFacilityInfo>
    <GarageFacilityInfo>
      <CategoryPrice>
        <BikeCategoryPrice>
          <BikeCategoryId>1</BikeCategoryId>
          <Price>1</Price>
          <SalePrice>1</SalePrice>
        </BikeCategoryPrice>
        <BikeCategoryPrice>
          <BikeCategoryId>1</BikeCategoryId>
          <Price>1</Price>
          <SalePrice>1</SalePrice>
        </BikeCategoryPrice>
      </CategoryPrice>
      <FacilityId>1</FacilityId>
    </GarageFacilityInfo>
  </FacilityListInfo>
  <ServiceId>1</ServiceId>
  <ShopId>1</ShopId>
</GarageServiceInfo>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GarageServiceInfo'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.