From 09a76277888aef563b52a2d26a6c25617515f527 Mon Sep 17 00:00:00 2001 From: Jakob Haufe Date: Sun, 1 May 2022 13:57:02 +0000 Subject: [PATCH] Add API URLs --- InvenTree/company/api.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/InvenTree/company/api.py b/InvenTree/company/api.py index c171bf7448..22c5c4b207 100644 --- a/InvenTree/company/api.py +++ b/InvenTree/company/api.py @@ -414,6 +414,12 @@ class SupplierPriceBreakDetail(generics.RetrieveUpdateDestroyAPIView): manufacturer_part_api_urls = [ + # Base URL for ManufacturerPartAttachment API endpoints + re_path(r'^attachment/', include([ + re_path(r'^(?P\d+)/', ManufacturerPartAttachmentDetail.as_view(), name='api-manufacturer-part-attachment-detail'), + re_path(r'^$', ManufacturerPartAttachmentList.as_view(), name='api-manufacturer-part-attachment-list'), + ])), + re_path(r'^parameter/', include([ re_path(r'^(?P\d+)/', ManufacturerPartParameterDetail.as_view(), name='api-manufacturer-part-parameter-detail'),