获取所有可用数据 - 招摇

时间:2018-02-09 00:06:29

标签: php swagger

我使用php中的curl从

获取所有产品数据

http://public.je-apis.com/swagger-ui/#!/menus

GET / menus / {menuId} / productcategories / {categoryId} / products

返回产品结果。

@keyframes changeColor {
  0% {
    color: yellow;
  }
  50% {
    color: red;
  }
}

@-moz-keyframes changeColor {
  0% {
    color: yellow;
  }
  50% {
    color: red;
  }
}

@-webkit-keyframes changeColor {
  0% {
    color: yellow;
  }
  50% {
    color: red;
  }
}


@-o-keyframes changeColor {
  0%{
    color: yellow;
  }
  50% {
    color: red;
  }
}

还有其他数据选项可供选择,如下所示,如招聘页面所示,我如何访问这些额外数据? I.E如果产品有餐选项,我该如何获得所述餐食选择。

JustEat.PublicApi.Site.ResponseData.ProductResult {
Id (integer, optional): Int32,
Name (string, optional): String,
Synonym (string, optional): String, 
Description (string, optional): String,
RestaurantMenuNumber (integer, optional): Int32,
RestaurantMenuNumberCode (string, optional): String,
Price (System.Decimal, optional): Decimal,
HasComboOptions (boolean, optional): Boolean,
HasAccessories (boolean, optional): Boolean,
HasRequiredAccessories (boolean, optional): Boolean,
ComboOptions (array[JustEat.PublicApi.Site.ResponseData.MealOptionResult], 
optional): IEnumerable[JustEat.PublicApi.Site.ResponseData.MealOptionResult],
Accessories (array[JustEat.Core.Model.ProductAccessory], optional): 
IEnumerable[JustEat.Core.Model.ProductAccessory],
ContainsNuts (boolean, optional): Boolean,
IsVegetarian (boolean, optional): Boolean,
IsSpicy (boolean, optional): Boolean,
IsTips (boolean, optional): Boolean, 
RequireOtherProducts (boolean, optional): Boolean
}

0 个答案:

没有答案