GET api/App/Courts

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of CourtsTB
NameDescriptionTypeAdditional information
Id

integer

None.

Court

string

None.

isActive

boolean

None.

FloorsTBs

Collection of FloorsTB

None.

WorkersTBs

Collection of WorkersTB

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "Id": 1,
    "Court": "sample string 2",
    "isActive": true,
    "FloorsTBs": [
      {
        "$id": "2",
        "Id": 1,
        "Floor": "sample string 2",
        "CourtId": 1,
        "isActive": true,
        "Number": "sample string 4",
        "CourtsTB": {
          "$ref": "1"
        },
        "HallsTBs": [
          {
            "$id": "3",
            "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": [
              {
                "$id": "4",
                "Id": 1,
                "UserId": 1,
                "HallId": 1,
                "isOpen": true,
                "HallsTB": {
                  "$ref": "3"
                },
                "UsersTB": {
                  "$id": "5",
                  "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-04-25T08:57:01.4300328-05:00",
                  "Membership": 1,
                  "AdvertisementTBs": [
                    {
                      "$id": "6",
                      "Id": 1,
                      "Title": "sample string 2",
                      "Description": "sample string 3",
                      "Date": "2019-04-25T08:57:01.4300328-05: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": "7",
                        "Id": 1,
                        "CategoryAr": "sample string 2",
                        "ParentId": 1,
                        "CategoryEn": "sample string 3",
                        "Img": "sample string 4",
                        "LastChild": 5,
                        "MainCategory": 6,
                        "AdvertisementTBs": [
                          {
                            "$ref": "6"
                          },
                          {
                            "$ref": "6"
                          }
                        ]
                      },
                      "CityTB": {
                        "$id": "8",
                        "Id": 1,
                        "City": "sample string 2",
                        "CountryFk": 1,
                        "CityAr": "sample string 3",
                        "AdvertisementTBs": [
                          {
                            "$ref": "6"
                          },
                          {
                            "$ref": "6"
                          }
                        ],
                        "UsersTBs": [
                          {
                            "$ref": "5"
                          },
                          {
                            "$ref": "5"
                          }
                        ]
                      },
                      "StatusTB": {
                        "$id": "9",
                        "Id": 1,
                        "Status": "sample string 2",
                        "AdvertisementTBs": [
                          {
                            "$ref": "6"
                          },
                          {
                            "$ref": "6"
                          }
                        ],
                        "BookingTBs": [
                          {
                            "$id": "10",
                            "Id": 1,
                            "UserId": 1,
                            "ItemId": 1,
                            "StatusFK": 1,
                            "preprice": 1.1,
                            "Date": "2019-04-25T08:57:01.4300328-05: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": {
                              "$ref": "9"
                            },
                            "UsersTB": {
                              "$ref": "5"
                            },
                            "StrDate": "sample string 9"
                          },
                          {
                            "$ref": "10"
                          }
                        ]
                      },
                      "UsersTB": {
                        "$ref": "5"
                      }
                    },
                    {
                      "$ref": "6"
                    }
                  ],
                  "BookingTBs": [
                    {
                      "$ref": "10"
                    },
                    {
                      "$ref": "10"
                    }
                  ],
                  "ChatTBs": [
                    {
                      "$id": "11",
                      "Id": 1,
                      "From": 1,
                      "To": 1,
                      "Msg": "sample string 2",
                      "Date": "2019-04-25T08:57:01.4300328-05:00",
                      "UsersTB": {
                        "$ref": "5"
                      },
                      "UsersTB1": {
                        "$ref": "5"
                      }
                    },
                    {
                      "$ref": "11"
                    }
                  ],
                  "ChatTBs1": [
                    {
                      "$ref": "11"
                    },
                    {
                      "$ref": "11"
                    }
                  ],
                  "CityTB": {
                    "$ref": "8"
                  },
                  "CountryTB": {
                    "$id": "12",
                    "Id": 1,
                    "Country": "sample string 2",
                    "Flag": "sample string 3",
                    "isActive": true,
                    "CountryAr": "sample string 5",
                    "UsersTBs": [
                      {
                        "$ref": "5"
                      },
                      {
                        "$ref": "5"
                      }
                    ]
                  },
                  "FavoritesTBs": [
                    {
                      "$id": "13",
                      "Id": 1,
                      "UserId": 1,
                      "AdvertiseId": 1,
                      "UsersTB": {
                        "$ref": "5"
                      },
                      "UsersTB1": {
                        "$ref": "5"
                      }
                    },
                    {
                      "$ref": "13"
                    }
                  ],
                  "FavoritesTBs1": [
                    {
                      "$ref": "13"
                    },
                    {
                      "$ref": "13"
                    }
                  ],
                  "FilesTBs": [
                    {
                      "$id": "14",
                      "Id": 1,
                      "File": "sample string 2",
                      "Image": "sample string 3",
                      "UserId": 4,
                      "ItemId": 1,
                      "UsersTB": {
                        "$ref": "5"
                      },
                      "UsersTB1": {
                        "$ref": "5"
                      }
                    },
                    {
                      "$ref": "14"
                    }
                  ],
                  "FilesTBs1": [
                    {
                      "$ref": "14"
                    },
                    {
                      "$ref": "14"
                    }
                  ],
                  "LocationTBs": [
                    {
                      "$id": "15",
                      "Id": 1,
                      "Location": "sample string 2",
                      "UserId": 1,
                      "UsersTB": {
                        "$ref": "5"
                      }
                    },
                    {
                      "$ref": "15"
                    }
                  ],
                  "MessagesTBs": [
                    {
                      "$id": "16",
                      "Id": 1,
                      "ChatUserId": 1,
                      "SharedId": 1,
                      "LastMessage": "sample string 2",
                      "Date": "2019-04-25T08:57:01.4300328-05:00",
                      "UsersTB": {
                        "$ref": "5"
                      },
                      "UsersTB1": {
                        "$ref": "5"
                      }
                    },
                    {
                      "$ref": "16"
                    }
                  ],
                  "MessagesTBs1": [
                    {
                      "$ref": "16"
                    },
                    {
                      "$ref": "16"
                    }
                  ],
                  "MyClinicTBs": [
                    {
                      "$id": "17",
                      "Id": 1,
                      "Clinc": "sample string 2",
                      "UserId": 1,
                      "ItemId": 1,
                      "UsersTB": {
                        "$ref": "5"
                      },
                      "UsersTB1": {
                        "$ref": "5"
                      }
                    },
                    {
                      "$ref": "17"
                    }
                  ],
                  "MyClinicTBs1": [
                    {
                      "$ref": "17"
                    },
                    {
                      "$ref": "17"
                    }
                  ],
                  "SpecialistsTBs": [
                    {
                      "$id": "18",
                      "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": "5"
                      }
                    },
                    {
                      "$ref": "18"
                    }
                  ],
                  "TypeTB": {
                    "$id": "19",
                    "Id": 1,
                    "Type": "sample string 2",
                    "TypeAr": "sample string 3",
                    "UsersTBs": [
                      {
                        "$ref": "5"
                      },
                      {
                        "$ref": "5"
                      }
                    ]
                  },
                  "UserHallsTBs": [
                    {
                      "$ref": "4"
                    },
                    {
                      "$ref": "4"
                    }
                  ]
                }
              },
              {
                "$ref": "4"
              }
            ],
            "FloorsTB": {
              "$ref": "2"
            },
            "NotificationTBs": [
              {
                "$id": "20",
                "Id": 1,
                "Noification": "sample string 2",
                "isActive": true,
                "UserId": 1,
                "Date": "2019-04-25T08:57:01.4300328-05:00",
                "StrDate": "sample string 4",
                "HallId": 1,
                "WorkerId": 1,
                "HallsTB": {
                  "$ref": "3"
                },
                "WorkersTB": {
                  "$id": "21",
                  "Id": 1,
                  "Name": "sample string 2",
                  "Email": "sample string 3",
                  "Phone": "sample string 4",
                  "Password": "sample string 5",
                  "isActive": true,
                  "CourtId": 1,
                  "CourtsTB": {
                    "$ref": "1"
                  },
                  "NotificationTBs": [
                    {
                      "$ref": "20"
                    },
                    {
                      "$ref": "20"
                    }
                  ]
                }
              },
              {
                "$ref": "20"
              }
            ]
          },
          {
            "$ref": "3"
          }
        ]
      },
      {
        "$ref": "2"
      }
    ],
    "WorkersTBs": [
      {
        "$ref": "21"
      },
      {
        "$ref": "21"
      }
    ]
  },
  {
    "$ref": "1"
  }
]