POST api/suppliers/suggest

Suggest customer and tags

Request Information

URI Parameters

None.

Body Parameters

request parameters

NameDescriptionTypeAdditional information
Term

Search Term

string

Required

Min length: 2

NumberOfSuppliers

Count of suggested Suppliers

integer

Default value is 4

Range: inclusive between 0 and 10

NumberOfTags

Count of suggested Tags

integer

Default value is 4

Range: inclusive between 0 and 10

GeoLocation

Current geo Location

GeoLocation

None.

Request Formats

application/json, text/json

Sample:
{
  "term": "sample string 1",
  "numberOfSuppliers": 1,
  "numberOfTags": 1,
  "geoLocation": {
    "longitude": 1.1,
    "latitude": 2.1
  }
}

Response Information

NameDescriptionTypeAdditional information
Tags

Tags

Collection of string

None.

Suppliers

Suggest Suppliers

Collection of SuggestSupplier

None.

Response Formats

application/json, text/json

Sample:
{
  "tags": [
    "sample string 1",
    "sample string 2"
  ],
  "suppliers": [
    {
      "supplierId": 1,
      "supplierName": "sample string 2"
    },
    {
      "supplierId": 1,
      "supplierName": "sample string 2"
    }
  ]
}