Instructions
...
PUT {url}/localtrac/location/{locationUuid}/categories | |||
---|---|---|---|
This route will assign location’s external (apiservice) categories. | |||
Request | |||
Headers | |||
Authorization | <token> obtained during the Authentication | ||
Accept | application/json | ||
Body (Example) | |||
| |||
{apiservice_slug} | Array of categories for this apiservice. apiservice_slug = bing in the example. | ||
{apiservice_slug}.primary | Array of primary categories for this apiservice (usually it’s an array of one element). You should pass uuid of category, obtained from “search categories” route. | ||
{apiservice_slug}.secondary | Array of secondary categories for this apiservice. You should pass uuid of categories, obtained from “search categories” route. | ||
Response (200) - Success | |||
Headers | |||
Content-Type | application/json | ||
Body | |||
| |||
Response(400) - Validation ErrorThis scenario happens if you sent any content who fails the minimum validation process. For instance, failing to provide valid apiservice name will lead to the following result | |||
Headers | |||
Content-Type | application/json | ||
Body | |||
| |||
Response (403) - Forbidden accessThis scenario happens if you sent non-existing locationUuid | |||
Content-Type | application/json | ||
Body | |||
|
...
DELETE {url}/localtrac/location/{locationUuid}/categories/{apiserviceSlug} | |||
---|---|---|---|
This route will delete (clean) all {apiservice_slug} categories, associated with this location. | |||
Request | |||
Headers | |||
Authorization | <token> obtained during the Authentication | ||
Accept | application/json | ||
Response (200) - Success | |||
Headers | |||
Content-Type | application/json | ||
Body | |||
| |||
Response (403) - Forbidden accessThis scenario happens if you sent non-existing locationUuid | |||
Content-Type | application/json | ||
Body | |||
|
GET {url}/localtrac/categories/{apiserviceSlug}/{language}/?s={searchTerm} | |||
---|---|---|---|
This route will search categories for selected apiservice. | |||
Request | |||
Headers | |||
Authorization | <token> obtained during the Authentication | ||
Accept | application/json | ||
Parameters | |||
apiserviceSlug | Short name of apiservices. For example: gmb, fb, foursquare, bing, yelp…. | ||
language | Primary language of results. Only “en” and “fr” are supported. | ||
searchTerm | The word or just several letters to search. For example “hot”. | ||
Response (200) - Success | |||
Headers | |||
Content-Type | application/json | ||
Body | |||
| |||
Response (404) - Not FoundThis scenario happens if you sent non-existing or not supported apiservice slug | |||
Headers | |||
Content-Type | application/json |