action just_eat_get_search_restaurants_tenant { label: "Search restaurants" description: "Get restaurants available in a given lat-long which match a search term. \nMatches can be found against the name, a cuisine or a product." provider: just_eat method: GET path: "/search/restaurants/{tenant}" encoding: json input: { type: "object" properties: { latlong: { type: "array" items: { type: "number" format: "decimal" } } limit: { type: "number" format: "integer" } searchTerm: { type: "string" } tenant: { type: "string" } } required: ["latlong", "searchTerm", "tenant"] additionalProperties: false } output: { type: "object" properties: { restaurants: { type: "array" description: "Ordered list of restaurants" items: { type: "object" properties: { isSponsored: { type: "boolean" description: "Flag to indicate if the restaurant is sponsored, so has been promoted to the top of the results" } products: { type: "array" description: "Ordered list of products available from the restaurant which matched the search term" items: { type: "object" properties: { fullName: { type: "string" description: "The full name of the product" } price: { type: "number" description: "The price of the product" } productId: { type: "string" description: "The id of the product" } } } } restaurantId: { type: "string" description: "The id of the restaurant" } } } } } } }