mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Update swagger documentation
This commit is contained in:
@@ -17,6 +17,7 @@ describe "CatalogItems", type: :request, swagger_doc: "dfc.yaml",
|
||||
:base_product,
|
||||
id: 90_000, supplier: enterprise, name: "Apple", description: "Red",
|
||||
variants: [variant],
|
||||
primary_taxon: build(:taxon, name: "Non local vegetable", dfc_name: "non_local_vegetable"),
|
||||
)
|
||||
}
|
||||
let(:variant) { build(:base_variant, id: 10_001, unit_value: 1, sku: "AR") }
|
||||
|
||||
@@ -29,6 +29,7 @@ describe "Enterprises", type: :request, swagger_doc: "dfc.yaml", rswag_autodoc:
|
||||
:product_with_image,
|
||||
id: 90_000, supplier: enterprise, name: "Apple", description: "Round",
|
||||
variants: [variant],
|
||||
primary_taxon: build(:taxon, name: "Non local vegetable", dfc_name: "non_local_vegetable"),
|
||||
)
|
||||
}
|
||||
let(:variant) { build(:base_variant, id: 10_001, unit_value: 1, sku: "APP") }
|
||||
|
||||
@@ -602,7 +602,7 @@ paths:
|
||||
"@type": dfc-b:SuppliedProduct
|
||||
dfc-b:name: Pesto - 1g
|
||||
dfc-b:description: Basil Pesto
|
||||
dfc-b:hasType: dfc-pt:non-local-vegetable
|
||||
dfc-b:hasType: dfc-pt:processed-vegetable
|
||||
dfc-b:hasQuantity:
|
||||
"@type": dfc-b:QuantitativeValue
|
||||
dfc-b:hasUnit: dfc-m:Gram
|
||||
|
||||
Reference in New Issue
Block a user