From: Emma Humphries Date: Tue, 11 Feb 2020 01:23:55 +0000 (-0800) Subject: no bug - Add syntax for dot accessors of component props X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c999b966babb0d2ba672913825bd97f13b43759b;p=thirdparty%2Fbugzilla.git no bug - Add syntax for dot accessors of component props --- diff --git a/docs/en/rst/api/core/v1/product.rst b/docs/en/rst/api/core/v1/product.rst index 0b96f7823..6a285aed4 100644 --- a/docs/en/rst/api/core/v1/product.rst +++ b/docs/en/rst/api/core/v1/product.rst @@ -266,6 +266,13 @@ request_group int The group ID that is allowed to request the flag if flagtype. ================ ======= ====================================================== +To return information about components in products, you can use the +``.`` property accesssor in your request: + +.. code-block:: text + + /rest/product?type=enterable&include_fields=id,name,components.name,components.id,components.is_active,components.description + .. _rest_product_create: Create Product