POST api/Services/AddUpdateRoute

Request Information

URI Parameters

None.

Body Parameters

RouteEntity
NameDescriptionTypeAdditional information
RouteId

integer

None.

StoreId

integer

None.

RouteName

string

None.

CreatedBy

integer

None.

IsActive

boolean

None.

RouteDetails

Collection of Tbl_RouteDetails

None.

Request Formats

application/json, text/json

Sample:
{
  "RouteId": 1,
  "StoreId": 2,
  "RouteName": "sample string 3",
  "CreatedBy": 4,
  "IsActive": true,
  "RouteDetails": [
    {
      "RouteDetailsId": 1,
      "RoutId": 2,
      "StoreId": 3,
      "PointName": "sample string 4",
      "Priority": 1,
      "Latitude": "sample string 5",
      "Longitude": "sample string 6",
      "IsActive": true,
      "CreatedBy": 8,
      "CreatedDate": "2024-12-23T03:47:03.3361309+05:30",
      "UpdatedBy": 10,
      "UpdatedDate": "2024-12-23T03:47:03.3361309+05:30"
    },
    {
      "RouteDetailsId": 1,
      "RoutId": 2,
      "StoreId": 3,
      "PointName": "sample string 4",
      "Priority": 1,
      "Latitude": "sample string 5",
      "Longitude": "sample string 6",
      "IsActive": true,
      "CreatedBy": 8,
      "CreatedDate": "2024-12-23T03:47:03.3361309+05:30",
      "UpdatedBy": 10,
      "UpdatedDate": "2024-12-23T03:47:03.3361309+05:30"
    }
  ]
}

text/html, multipart/form-data

Sample:
{"RouteId":1,"StoreId":2,"RouteName":"sample string 3","CreatedBy":4,"IsActive":true,"RouteDetails":[{"RouteDetailsId":1,"RoutId":2,"StoreId":3,"PointName":"sample string 4","Priority":1,"Latitude":"sample string 5","Longitude":"sample string 6","IsActive":true,"CreatedBy":8,"CreatedDate":"2024-12-23T03:47:03.3361309+05:30","UpdatedBy":10,"UpdatedDate":"2024-12-23T03:47:03.3361309+05:30"},{"RouteDetailsId":1,"RoutId":2,"StoreId":3,"PointName":"sample string 4","Priority":1,"Latitude":"sample string 5","Longitude":"sample string 6","IsActive":true,"CreatedBy":8,"CreatedDate":"2024-12-23T03:47:03.3361309+05:30","UpdatedBy":10,"UpdatedDate":"2024-12-23T03:47:03.3361309+05:30"}]}

application/xml, text/xml

Sample:
<RouteEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entity">
  <CreatedBy>4</CreatedBy>
  <IsActive>true</IsActive>
  <RouteDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataBase">
    <d2p1:Tbl_RouteDetails>
      <d2p1:CreatedBy>8</d2p1:CreatedBy>
      <d2p1:CreatedDate>2024-12-23T03:47:03.3361309+05:30</d2p1:CreatedDate>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:Latitude>sample string 5</d2p1:Latitude>
      <d2p1:Longitude>sample string 6</d2p1:Longitude>
      <d2p1:PointName>sample string 4</d2p1:PointName>
      <d2p1:Priority>1</d2p1:Priority>
      <d2p1:RoutId>2</d2p1:RoutId>
      <d2p1:RouteDetailsId>1</d2p1:RouteDetailsId>
      <d2p1:StoreId>3</d2p1:StoreId>
      <d2p1:UpdatedBy>10</d2p1:UpdatedBy>
      <d2p1:UpdatedDate>2024-12-23T03:47:03.3361309+05:30</d2p1:UpdatedDate>
    </d2p1:Tbl_RouteDetails>
    <d2p1:Tbl_RouteDetails>
      <d2p1:CreatedBy>8</d2p1:CreatedBy>
      <d2p1:CreatedDate>2024-12-23T03:47:03.3361309+05:30</d2p1:CreatedDate>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:Latitude>sample string 5</d2p1:Latitude>
      <d2p1:Longitude>sample string 6</d2p1:Longitude>
      <d2p1:PointName>sample string 4</d2p1:PointName>
      <d2p1:Priority>1</d2p1:Priority>
      <d2p1:RoutId>2</d2p1:RoutId>
      <d2p1:RouteDetailsId>1</d2p1:RouteDetailsId>
      <d2p1:StoreId>3</d2p1:StoreId>
      <d2p1:UpdatedBy>10</d2p1:UpdatedBy>
      <d2p1:UpdatedDate>2024-12-23T03:47:03.3361309+05:30</d2p1:UpdatedDate>
    </d2p1:Tbl_RouteDetails>
  </RouteDetails>
  <RouteId>1</RouteId>
  <RouteName>sample string 3</RouteName>
  <StoreId>2</StoreId>
</RouteEntity>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

APIResponce
NameDescriptionTypeAdditional information
Status

string

None.

Message

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2",
  "Data": {}
}

text/html, multipart/form-data

Sample:
{"Status":"sample string 1","Message":"sample string 2","Data":{}}

application/xml, text/xml

Sample:
<APIResponce xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Controllers">
  <Data />
  <Message>sample string 2</Message>
  <Status>sample string 1</Status>
</APIResponce>