POST api/suppliers/searchmap

Search Suppliers for Map

Request Information

URI Parameters

None.

Body Parameters

Search Parameters

NameDescriptionTypeAdditional information
NorthEast

GeoLocation

None.

SouthWest

GeoLocation

None.

SupplierId

Supplier Id

integer

None.

SearchString

Search string

string

None.

GeoLocation

Current geo Location

GeoLocation

None.

PageNumber

Page Number

integer

Default value is 0

PageSize

Page Size

integer

Default value is 10

SortDirection

Sort Direction

SortDirectionEnum

Default value is BestMatch

Facets

Facets Selection

FacetSelection

None.

CalculateFacets

Calculate Facets

boolean

Default value is False

Request Formats

application/json, text/json

Sample:
{
  "northEast": {
    "longitude": 1.1,
    "latitude": 2.1
  },
  "southWest": {
    "longitude": 1.1,
    "latitude": 2.1
  },
  "supplierId": 1,
  "searchString": "sample string 1",
  "geoLocation": {
    "longitude": 1.1,
    "latitude": 2.1
  },
  "pageNumber": 1,
  "pageSize": 1,
  "sortDirection": 0,
  "facets": {
    "brands": [
      "sample string 1",
      "sample string 2"
    ],
    "categories": [
      "sample string 1",
      "sample string 2"
    ],
    "dealTypes": [
      "sample string 1",
      "sample string 2"
    ],
    "departments": [
      "sample string 1",
      "sample string 2"
    ],
    "subCategories": [
      "sample string 1",
      "sample string 2"
    ],
    "themes": [
      "sample string 1",
      "sample string 2"
    ]
  },
  "calculateFacets": true
}

Response Information

search result

NameDescriptionTypeAdditional information
Items

Collection of MapItem

None.

Response Formats

application/json, text/json

Sample:
{
  "items": [
    {
      "isSpecialOffer": true,
      "isFavorite": true,
      "supplierId": 1,
      "addressId": 3,
      "latitude": 4.1,
      "longitude": 5.1,
      "iconType": 0
    },
    {
      "isSpecialOffer": true,
      "isFavorite": true,
      "supplierId": 1,
      "addressId": 3,
      "latitude": 4.1,
      "longitude": 5.1,
      "iconType": 0
    }
  ]
}