POST api/Advertisement/AddAdvertise

Request Information

URI Parameters

None.

Body Parameters

AdvertisementTB
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

Description

string

None.

Date

date

None.

DistrictFK

integer

None.

CityFk

integer

None.

Views

integer

None.

Counter

string

None.

Model

string

None.

StatusFk

integer

None.

InColor

string

None.

OutColor

string

None.

isMobile

boolean

None.

Img1

string

None.

Img2

string

None.

Img3

string

None.

Img4

string

None.

Img5

string

None.

Img6

string

None.

Img7

string

None.

Img8

string

None.

Price

decimal number

None.

UserId

integer

None.

isActive

boolean

None.

CategoryFK

integer

None.

PrePrice

decimal number

None.

Location

string

None.

CategoryTB

CategoryTB

None.

CityTB

CityTB

None.

StatusTB

StatusTB

None.

UsersTB

UsersTB

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Title": "sample string 2",
  "Description": "sample string 3",
  "Date": "2019-02-20T06:11:52.5150684-06:00",
  "DistrictFK": 1,
  "CityFk": 1,
  "Views": 4,
  "Counter": "sample string 5",
  "Model": "sample string 6",
  "StatusFk": 1,
  "InColor": "sample string 7",
  "OutColor": "sample string 8",
  "isMobile": true,
  "Img1": "sample string 9",
  "Img2": "sample string 10",
  "Img3": "sample string 11",
  "Img4": "sample string 12",
  "Img5": "sample string 13",
  "Img6": "sample string 14",
  "Img7": "sample string 15",
  "Img8": "sample string 16",
  "Price": 1.1,
  "UserId": 1,
  "isActive": true,
  "CategoryFK": 1,
  "PrePrice": 1.1,
  "Location": "sample string 18",
  "CategoryTB": {
    "$id": "2",
    "Id": 1,
    "CategoryAr": "sample string 2",
    "ParentId": 1,
    "CategoryEn": "sample string 3",
    "Img": "sample string 4",
    "LastChild": 5,
    "MainCategory": 6,
    "AdvertisementTBs": [
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      }
    ]
  },
  "CityTB": {
    "$id": "3",
    "Id": 1,
    "City": "sample string 2",
    "CountryFk": 1,
    "CityAr": "sample string 3",
    "AdvertisementTBs": [
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      }
    ],
    "UsersTBs": [
      {
        "$id": "4",
        "id": 1,
        "name": "sample string 2",
        "email": "sample string 3",
        "password": "sample string 4",
        "type": 1,
        "list1": 1,
        "list2": 1,
        "image": "sample string 5",
        "pr": 1,
        "isActive": true,
        "Mobile": "sample string 6",
        "ConfirmCode": "sample string 7",
        "RegistrationId": "sample string 8",
        "PositionFk": 1,
        "CityFk": 1,
        "isBlocked": true,
        "isIos": true,
        "Work": "sample string 9",
        "hasMsg": 10,
        "PlanId": 1,
        "TypeId": 1,
        "CountryId": 1,
        "Long": "sample string 11",
        "Lat": "sample string 12",
        "Facebook": "sample string 13",
        "Twitter": "sample string 14",
        "Youtube": "sample string 15",
        "Instagram": "sample string 16",
        "Link": "sample string 17",
        "Description": "sample string 18",
        "Views": 1,
        "Img2": "sample string 19",
        "Img3": "sample string 20",
        "Img4": "sample string 21",
        "SpecFK": 1,
        "DescriptionAr": "sample string 22",
        "isAdmin": true,
        "Quid": "sample string 23",
        "Contract": 1,
        "Gender": 1,
        "openNotification": true,
        "Package": 1,
        "EndDate": "2019-02-20T06:11:52.5150684-06:00",
        "Membership": 1,
        "AdvertisementTBs": [
          {
            "$ref": "1"
          },
          {
            "$ref": "1"
          }
        ],
        "BookingTBs": [
          {
            "$id": "5",
            "Id": 1,
            "UserId": 1,
            "ItemId": 1,
            "StatusFK": 1,
            "preprice": 1.1,
            "Date": "2019-02-20T06:11:52.5150684-06:00",
            "isActive": true,
            "Name": "sample string 2",
            "DateStr": "sample string 3",
            "Phone": "sample string 4",
            "PatientStatus": "sample string 5",
            "NationalId": "sample string 6",
            "Type": 1,
            "Hash": "sample string 7",
            "inv_id": 1,
            "ClinicName": "sample string 8",
            "isSend": true,
            "StatusTB": {
              "$id": "6",
              "Id": 1,
              "Status": "sample string 2",
              "AdvertisementTBs": [
                {
                  "$ref": "1"
                },
                {
                  "$ref": "1"
                }
              ],
              "BookingTBs": [
                {
                  "$ref": "5"
                },
                {
                  "$ref": "5"
                }
              ]
            },
            "UsersTB": {
              "$ref": "4"
            },
            "StrDate": "sample string 9"
          },
          {
            "$ref": "5"
          }
        ],
        "ChatTBs": [
          {
            "$id": "7",
            "Id": 1,
            "From": 1,
            "To": 1,
            "Msg": "sample string 2",
            "Date": "2019-02-20T06:11:52.5150684-06:00",
            "UsersTB": {
              "$ref": "4"
            },
            "UsersTB1": {
              "$ref": "4"
            }
          },
          {
            "$ref": "7"
          }
        ],
        "ChatTBs1": [
          {
            "$ref": "7"
          },
          {
            "$ref": "7"
          }
        ],
        "CityTB": {
          "$ref": "3"
        },
        "CountryTB": {
          "$id": "8",
          "Id": 1,
          "Country": "sample string 2",
          "Flag": "sample string 3",
          "isActive": true,
          "CountryAr": "sample string 5",
          "UsersTBs": [
            {
              "$ref": "4"
            },
            {
              "$ref": "4"
            }
          ]
        },
        "FavoritesTBs": [
          {
            "$id": "9",
            "Id": 1,
            "UserId": 1,
            "AdvertiseId": 1,
            "UsersTB": {
              "$ref": "4"
            },
            "UsersTB1": {
              "$ref": "4"
            }
          },
          {
            "$ref": "9"
          }
        ],
        "FavoritesTBs1": [
          {
            "$ref": "9"
          },
          {
            "$ref": "9"
          }
        ],
        "FilesTBs": [
          {
            "$id": "10",
            "Id": 1,
            "File": "sample string 2",
            "Image": "sample string 3",
            "UserId": 4,
            "ItemId": 1,
            "UsersTB": {
              "$ref": "4"
            },
            "UsersTB1": {
              "$ref": "4"
            }
          },
          {
            "$ref": "10"
          }
        ],
        "FilesTBs1": [
          {
            "$ref": "10"
          },
          {
            "$ref": "10"
          }
        ],
        "LocationTBs": [
          {
            "$id": "11",
            "Id": 1,
            "Location": "sample string 2",
            "UserId": 1,
            "UsersTB": {
              "$ref": "4"
            }
          },
          {
            "$ref": "11"
          }
        ],
        "MessagesTBs": [
          {
            "$id": "12",
            "Id": 1,
            "ChatUserId": 1,
            "SharedId": 1,
            "LastMessage": "sample string 2",
            "Date": "2019-02-20T06:11:52.5150684-06:00",
            "UsersTB": {
              "$ref": "4"
            },
            "UsersTB1": {
              "$ref": "4"
            }
          },
          {
            "$ref": "12"
          }
        ],
        "MessagesTBs1": [
          {
            "$ref": "12"
          },
          {
            "$ref": "12"
          }
        ],
        "MyClinicTBs": [
          {
            "$id": "13",
            "Id": 1,
            "Clinc": "sample string 2",
            "UserId": 1,
            "ItemId": 1,
            "UsersTB": {
              "$ref": "4"
            },
            "UsersTB1": {
              "$ref": "4"
            }
          },
          {
            "$ref": "13"
          }
        ],
        "MyClinicTBs1": [
          {
            "$ref": "13"
          },
          {
            "$ref": "13"
          }
        ],
        "SpecialistsTBs": [
          {
            "$id": "14",
            "Id": 1,
            "Name": "sample string 2",
            "Position": "sample string 3",
            "Desc": "sample string 4",
            "UserId": 1,
            "Image": "sample string 5",
            "Email": "sample string 6",
            "UsersTB": {
              "$ref": "4"
            }
          },
          {
            "$ref": "14"
          }
        ],
        "TypeTB": {
          "$id": "15",
          "Id": 1,
          "Type": "sample string 2",
          "TypeAr": "sample string 3",
          "UsersTBs": [
            {
              "$ref": "4"
            },
            {
              "$ref": "4"
            }
          ]
        },
        "UserHallsTBs": [
          {
            "$id": "16",
            "Id": 1,
            "UserId": 1,
            "HallId": 1,
            "isOpen": true,
            "HallsTB": {
              "$id": "17",
              "isOpen": true,
              "Floor": "sample string 2",
              "Court": "sample string 3",
              "isSet": true,
              "Id": 5,
              "Hall": "sample string 6",
              "FloorId": 1,
              "Start": "sample string 7",
              "isActive": true,
              "isManul": true,
              "UserHallsTBs": [
                {
                  "$ref": "16"
                },
                {
                  "$ref": "16"
                }
              ],
              "FloorsTB": {
                "$id": "18",
                "Id": 1,
                "Floor": "sample string 2",
                "CourtId": 1,
                "isActive": true,
                "Number": "sample string 4",
                "CourtsTB": {
                  "$id": "19",
                  "Id": 1,
                  "Court": "sample string 2",
                  "isActive": true,
                  "FloorsTBs": [
                    {
                      "$ref": "18"
                    },
                    {
                      "$ref": "18"
                    }
                  ],
                  "WorkersTBs": [
                    {
                      "$id": "20",
                      "Id": 1,
                      "Name": "sample string 2",
                      "Email": "sample string 3",
                      "Phone": "sample string 4",
                      "Password": "sample string 5",
                      "isActive": true,
                      "CourtId": 1,
                      "CourtsTB": {
                        "$ref": "19"
                      },
                      "NotificationTBs": [
                        {
                          "$id": "21",
                          "Id": 1,
                          "Noification": "sample string 2",
                          "isActive": true,
                          "UserId": 1,
                          "Date": "2019-02-20T06:11:52.5150684-06:00",
                          "StrDate": "sample string 4",
                          "HallId": 1,
                          "WorkerId": 1,
                          "HallsTB": {
                            "$ref": "17"
                          },
                          "WorkersTB": {
                            "$ref": "20"
                          }
                        },
                        {
                          "$ref": "21"
                        }
                      ]
                    },
                    {
                      "$ref": "20"
                    }
                  ]
                },
                "HallsTBs": [
                  {
                    "$ref": "17"
                  },
                  {
                    "$ref": "17"
                  }
                ]
              },
              "NotificationTBs": [
                {
                  "$ref": "21"
                },
                {
                  "$ref": "21"
                }
              ]
            },
            "UsersTB": {
              "$ref": "4"
            }
          },
          {
            "$ref": "16"
          }
        ]
      },
      {
        "$ref": "4"
      }
    ]
  },
  "StatusTB": {
    "$ref": "6"
  },
  "UsersTB": {
    "$ref": "4"
  }
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1